BoundingVolume (Interface)
An interface defining common operations for bounding volumes (i.e. BoundingSphere, AxisAlignedBoundingBox, OrientedBoundingBox).
Global Functionsโ
Membersโ
intersectPlane(plane : Plane) : CullingResultโ
Determines which side of a plane a sphere is located.
planeThe plane to test against. Returns'inside'if the entire sphere is on the side of the plane the normal is pointing'outside'if the entire sphere is on the opposite side'intersecting'if 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.
See Attributions for the project-wide source inventory and acknowledgments.