Frustum

Core.Frustum exported from @manycore/aholo-viewer.

Core Class

Constructors

Properties

planes: Plane[]

Array of 6 planes.

corners: Vector3[]

The eight vertex's position of frustum

Methods

  • Return a new Frustum with the same parameters as this one.

    Returns Frustum

  • Checks whether the object's BufferGeometry.boundingSphere| bounding is intersecting the frustum. Note that the object must have a BufferGeometry| geometry so that the bounding sphere can be calculated.

    Parameters

    Returns boolean

  • Checks whether the sprite is intersecting the frustum.

    Parameters

    Returns boolean

  • Return true if sphere intersects with this frustum.

    Parameters

    Returns boolean

  • Return true if box intersects with this frustum.

    Parameters

    • box: Box3

      Box3 to check for intersection.

    Returns boolean

  • Checks to see if the frustum contains the point.

    Parameters

    Returns boolean

  • Return a value to represent the closest distance between camera and box, if there are any part of bos inside the frustum.

    Parameters

    Returns number