Back to class index
| OBB::OBBSyntaxOBB::OBB(); [1 line of code]The default constructor does not initialize any members of this class. [opaque-qtscript]. This means that the values of the members pos, r and axis are undefined after creating a new OBB using this default constructor. Remember to assign to them before use. See AlsoSyntaxOBB::OBB(const float4 &pos, const float4 &r, const float4 &axis0, const float4 &axis1, const float4 &axis2); [7 lines of code]Constructs an OBB by explicitly specifying all its member values. See AlsoSyntaxOBB::OBB(const AABB &aabb); [4 lines of code]Constructs an OBB from an AABB. Since the OBB is an AABB with arbirary rotations allowed, this conversion is exact, i.e. it does not loosen the set of points represented by the AABB. Therefore this constructor is implicit, meaning that you can directly assign an AABB to an OBB. Note Converting an OBB back to an AABB is not exact. See the MinimalEnclosingAABB() function for converting to the opposite direction. See Also |