Class: Frustum

og.Frustum

new og.Frustum()

Frustum object, part of the camera object.

Methods

staticog.Frustum.planeNormalize(plane)

Normalize frustum plane.
Name Type Description
plane Array.<number> Frustum plane coordinates.

containsBox(box){boolean}

Returns true if the frustum contains a bounding box.
Name Type Description
box og.bv.Box Bounding box.
Returns:
Type Description
boolean

containsPoint(point){boolean}

Returns true if a point in the frustum.
Name Type Description
point og.math.Vector3 Cartesian point.
Returns:
Type Description
boolean

containsSphere(sphere){boolean}

Returns true if the frustum contains a bonding sphere.
Name Type Description
sphere og.bv.Sphere Bounding sphere.
Returns:
Type Description
boolean

setFrustum(clip)

Camera's projection matrix values.
Name Type Description
clip Array.<number> Projection matrix parameters.