BoundingVolume (Interface)
An interface defining common operations for bounding volumes (i.e. BoundingSphere, AxisAlignedBoundingBox, OrientedBoundingBox).
Global Functions
Members
intersectPlane(plane : Plane) : INTERSECTION
Determines which side of a plane a sphere is located.
planeThe plane to test against. ReturnsINTERSECTION.INSIDEif the entire sphere is on the side of the plane the normal is pointingINTERSECTION.OUTSIDEif the entire sphere is on the opposite sideINTERSECTION.INTERSECTINGif the sphere intersects the plane.
transform(transform : Number[16]) : BoundingSphere
Applies a 4x4 affine transformation matrix to a bounding sphere.
transformThe transformation matrix to apply to the bounding sphere.
distanceSquaredTo(point) : Number
Computes the estimated distance squared from the closest point on a bounding sphere to a point.
pointThe point
Returns
- The estimated distance squared from the bounding sphere to the point.
Attribution
This class was ported from Cesium under the Apache 2 License.