Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OrientedBox3

Hierarchy

  • OrientedBox3

Implements

Index

Constructors

constructor

  • new OrientedBox3(): OrientedBox3
  • new OrientedBox3(position: Vector3, rotationMatrix: Matrix4, extents: Vector3): OrientedBox3

Properties

Readonly extents

extents: Vector3 = new Vector3()

The extents of this OrientedBox3.

Readonly position

position: Vector3 = new Vector3()

The position of the center of this OrientedBox3.

Readonly xAxis

xAxis: Vector3 = new Vector3(1, 0, 0)

The x-axis of this OrientedBox3.

Readonly yAxis

yAxis: Vector3 = new Vector3(0, 1, 0)

The y-axis of this OrientedBox3.

Readonly zAxis

zAxis: Vector3 = new Vector3(0, 0, 1)

The z-axis of this OrientedBox3.

Methods

clone

contains

  • contains(point: Vector3): boolean

copy

distanceToPoint

  • distanceToPoint(point: Vector3): number

distanceToPointSquared

  • distanceToPointSquared(point: Vector3): number

getCenter

  • getCenter(center?: Vector3): Vector3

getRotationMatrix

  • getRotationMatrix(matrix?: Matrix4): Matrix4

getSize

  • getSize(size?: Vector3): Vector3

intersects

  • intersects(frustumOrPlanes: Plane[] | Frustum): boolean

intersectsRay

  • intersectsRay(ray: Ray): number | undefined
  • Checks intersection with the given ray.

    Parameters

    • ray: Ray

      The ray to test.

    Returns number | undefined

    distance from ray origin to intersection point if it exist, undefined otherwise.

Generated using TypeDoc