Hierarchy

  • BoundingBox

Constructors

  • Parameters

    • Optional pMin: Vector3
    • Optional pMax: Vector3

    Returns BoundingBox

Properties

max: Vector3
min: Vector3
EDGES: number[][] = ...

Indices of the 12 box edges

SIDE_MAX_X: number[] = ...

Right side point indices.

SIDE_MAX_Y: number[] = ...

Top side point indices.

SIDE_MAX_Z: number[] = ...

Back side point indices.

SIDE_MIN_X: number[] = ...

Left side point indices.

SIDE_MIN_Y: number[] = ...

Bottom side point indices.

SIDE_MIN_Z: number[] = ...

Front side point indices.

Methods

  • Parameters

    • pWorldMatrix: null | Matrix = null

    Returns Vector3

  • Returns an array with the 8 box corners in fixed order.

    Order of points
    ..6--------5
    ./ |     / |
    1--|----2  |
    |  7----|--4
    | /     | /
    0-------3
    
    0 = (min.x, min.y, min.z)
    1 = (min.x, max.y, min.z)
    2 = (max.x, max.y, min.z)
    3 = (max.x, min.y, min.z)
    4 = (max.x, min.y, max.z)
    5 = (max.x, max.y, max.z)
    6 = (min.x, max.y, max.z)
    7 = (min.x, min.y, max.z)
    

    Parameters

    • pWorldMatrix: null | Matrix = null

    Returns Vector3[]

  • Returns number

  • Returns Vector3

  • Checks if this bounding box intersects with another bounding box.

    Parameters

    • pBounds: BoundingBox

      The other bounding box.

    • pBorderIntersections: boolean

      If true, it counts as an intersection if the two bounding boxes are touching eachother.

    • pEpsilon: number = EPSILON

      Tolerance value for the check (default: utils.math.EPSILON)

    Returns boolean

  • Checks if this bounding box intersects with another bounding box given as a min and max vector.

    Parameters

    • pMin: Vector3

      The min vector of the bonding box.

    • pMax: Vector3

      The max vector of the bonding box.

    • pBorderIntersections: boolean

      If true, it counts as an intersection if the two bounding boxes are touching eachother.

    • pEpsilon: number = EPSILON

      Tolerance value for the check (default: utils.math.EPSILON)

    Returns boolean

  • Checks if this bounding box intersects with the given point.

    Parameters

    • pPoint: Vector3

      The point.

    • pBorderIntersections: boolean

      If true, it counts as an intersection if the point is directly on the border of this bounding box.

    • pEpsilon: number = EPSILON

      Tolerance value for the check (default: utils.math.EPSILON)

    Returns boolean

  • Parameters

    • pFrustum: Frustum
    • pWorldMatrix: null | Matrix = null

    Returns boolean

  • Parameters

    • pFrustum: Frustum
    • pWorldMatrix: null | Matrix = null

    Returns boolean

  • Returns boolean

  • Returns void

  • Calculates the bounding box for the given elements. If pVisibleOnly is true invisible nodes are ignored.

    Parameters

    Returns BoundingBox

  • Calculates the bounding box for the given mesh. If pVisibleOnly is true invisible nodes are ignored.

    Parameters

    • pMesh: AbstractMesh
    • pVisibleOnly: boolean = false

    Returns BoundingBox

  • Calculates the bounding box for the given node. If pVisibleOnly is true invisible nodes are ignored.

    Parameters

    • pNode: TransformNode
    • pVisibleOnly: boolean = false

    Returns BoundingBox

  • Returns true if the given BabylonJS BoundingInfo is valid.

    Parameters

    • pInfo: BoundingInfo

    Returns boolean

Generated using TypeDoc