BoundingBox

Hierarchy

  • BoundingBox

Implements

Index

Constructors

constructor

  • Creates a new bounding box

    Parameters

    • min: Vector3

      defines the minimum vector (in local space)

    • max: Vector3

      defines the maximum vector (in local space)

    Returns BoundingBox

Properties

center

center: Vector3

centerWorld

centerWorld: Vector3

directions

directions: Vector3[]

extendSize

extendSize: Vector3

extendSizeWorld

extendSizeWorld: Vector3

maximum

maximum: Vector3

maximumWorld

maximumWorld: Vector3

minimum

minimum: Vector3

minimumWorld

minimumWorld: Vector3

vectors

vectors: Vector3[]

vectorsWorld

vectorsWorld: Vector3[]

Methods

getWorldMatrix

intersectsMinMax

intersectsPoint

  • intersectsPoint(point: Vector3): boolean
  • Parameters

    Returns boolean

intersectsSphere

isCompletelyInFrustum

  • isCompletelyInFrustum(frustumPlanes: Plane[]): boolean

isInFrustum

  • isInFrustum(frustumPlanes: Plane[]): boolean

reConstruct

  • Recreates the entire bounding box from scratch

    Parameters

    • min: Vector3

      defines the new minimum vector (in local space)

    • max: Vector3

      defines the new maximum vector (in local space)

    Returns void

setWorldMatrix

Static Intersects

Static IntersectsSphere

  • IntersectsSphere(minPoint: Vector3, maxPoint: Vector3, sphereCenter: Vector3, sphereRadius: number): boolean
  • Parameters

    Returns boolean

Static IsCompletelyInFrustum

  • IsCompletelyInFrustum(boundingVectors: Vector3[], frustumPlanes: Plane[]): boolean
  • Parameters

    Returns boolean

Static IsInFrustum

  • IsInFrustum(boundingVectors: Vector3[], frustumPlanes: Plane[]): boolean
  • Parameters

    Returns boolean

Generated using TypeDoc