|Back to class index|
SyntaxOBB::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.
SyntaxOBB::OBB(const AABB &aabb); [4 lines of code]
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.
Converting an OBB back to an AABB is not exact. See the MinimalEnclosingAABB() function for converting to the opposite direction.
Leave a Comment