Options
All
  • Public
  • Public/Protected
  • All
Menu

Class used to store bounding box information

Hierarchy

  • BoundingBox

Implements

Index

Constructors

Properties

center: Vector3

Gets the center of the bounding box in local space

centerWorld: Vector3

Gets the center of the bounding box in world space

directions: Vector3[]

Gets the OBB (object bounding box) directions

extendSize: Vector3

Gets the extend size in local space

extendSizeWorld: Vector3

Gets the extend size in world space

maximum: Vector3

Gets the maximum vector in local space

maximumWorld: Vector3

Gets the maximum vector in world space

minimum: Vector3

Gets the minimum vector in local space

minimumWorld: Vector3

Gets the minimum vector in world space

vectors: Vector3[]

Gets the 8 vectors representing the bounding box in local space

vectorsWorld: Vector3[]

Gets the 8 vectors representing the bounding box in world space

Methods

  • dispose(): void
  • Disposes the resources of the class

    Returns void

  • Gets the world matrix of the bounding box

    Returns DeepImmutableObject<Matrix>

    a matrix

  • Tests if the bounding box intersects with a box defined by a min and max vectors

    Parameters

    Returns boolean

    true if there is an intersection

  • Tests if a point is inside the bounding box

    Parameters

    Returns boolean

    true if the point is inside the bounding box

  • Tests if the bounding box intersects with a bounding sphere

    Parameters

    Returns boolean

    true if there is an intersection

  • Tests if the bounding box is entirely inside the frustum planes

    Parameters

    Returns boolean

    true if there is an inclusion

  • Tests if the bounding box is intersecting the frustum planes

    Parameters

    Returns boolean

    true if there is an intersection

  • Recreates the entire bounding box from scratch as if we call the constructor in place

    Parameters

    Returns void

  • Scale the current bounding box by applying a scale factor

    Parameters

    • factor: number

      defines the scale factor to apply

    Returns BoundingBox

    the current bounding box

  • Tests if a bounding box defines by a min/max vectors intersects a sphere

    Parameters

    Returns boolean

    true if there is an intersection

  • Tests if a bounding box defined with 8 vectors is entirely inside frustum planes

    Parameters

    Returns boolean

    true if there is an inclusion

  • Tests if a bounding box defined with 8 vectors intersects frustum planes

    Parameters

    Returns boolean

    true if there is an intersection

Legend

  • Constructor
  • Property
  • Method
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Property
  • Method
  • Static method

Settings

Theme