Companion
Functions
Duplicates a OrientedBoundingBox instance.
Computes the eight corners of an oriented bounding box. The corners are ordered by (-X, -Y, -Z), (-X, -Y, +Z), (-X, +Y, -Z), (-X, +Y, +Z), (+X, -Y, -Z), (+X, -Y, +Z), (+X, +Y, -Z), (+X, +Y, +Z).
The distances calculated by the vector from the center of the bounding box to position projected onto direction.
Computes a transformation matrix from an oriented bounding box.
Computes the estimated distance squared from the closest point on a bounding box to a point.
Compares the provided OrientedBoundingBox componentwise and returns true
if they are equal, false
otherwise.
Computes an instance of an OrientedBoundingBox of the given positions. This is an implementation of Stefan Gottschalk's Collision Queries using Oriented Bounding Boxes solution (PHD thesis). Reference: http://gamma.cs.unc.edu/users/gottschalk/main.pdf
Computes an OrientedBoundingBox that bounds an affine transformation.
Determines which side of a plane the oriented bounding box is located.
Determines whether or not a bounding box is hidden from view by the occluder.
Stores the provided instance into the provided array.
Retrieves an instance from a packed array.