Options
Menu

Class AxisAlignedBoundingBox2D

AxisAlignedBoundingBox represents a bounding box volume that has its planes aligned to the local coordinate axes of the bounded object. This is useful for most meshes.

Hierarchy

Index

Constructors

constructor

Properties

_box

_box: Box

_entity

_entity: IEntity

_pBoundsPrimitive

_pBoundsPrimitive: Sprite

_pInvalidated

_pInvalidated: boolean

Accessors

boundsPrimitive

Methods

_pCreateBoundsPrimitive

  • _pCreateBoundsPrimitive(): Sprite

_pUpdate

  • _pUpdate(): void

classifyToPlane

  • classifyToPlane(plane: Plane3D): number

clone

dispose

  • dispose(): void

invalidate

  • invalidate(): void

isInFrustum

  • isInFrustum(planes: Array<Plane3D>, numPlanes: number): boolean

nullify

  • nullify(): void

rayIntersection

  • rayIntersection(position: Vector3D, direction: Vector3D, targetNormal: Vector3D): number
  • Parameters

    • position: Vector3D
    • direction: Vector3D
    • targetNormal: Vector3D

    Returns number

Generated using TypeDoc