An oriented bounding box: an axis-aligned box from min to max in the frame given by
transform.
Methods
update(): voidRecomputes the inverse transform, corners and planes after min, max or transform change.
clampPoint( point: Vec3, target: Vec3 ): Vec3Returns the point inside the box that is closest to the given point.
distanceToPoint( point: Vec3 ): numberReturns the distance from the box to the point, or 0 when the point is inside.
intersectsFrustum(
// The six inward facing planes of the frustum.
frustumPlanes: Array<Plane>,
// The eight corners of the frustum.
frustumPoints: Array<Vec3>
): boolean