Skip to content

@tmrw-realityos/charmDocs


@tmrw-realityos/charm / AABB

Class: AABB

Constructors

new AABB()

new AABB(aabb): AABB

Parameters

aabb: undefined | AABB = undefined

Returns

AABB

Defined in

packages/charm/src/helpers/aabb.ts:9

Properties

data

data: Float32Array

Defined in

packages/charm/src/helpers/aabb.ts:7


max_

max_: vec3

Defined in

packages/charm/src/helpers/aabb.ts:6


min_

min_: vec3

Defined in

packages/charm/src/helpers/aabb.ts:5


corners

static corners: vec3[]

Defined in

packages/charm/src/helpers/aabb.ts:54

Accessors

center

get center(): vec3

Returns

vec3

Defined in

packages/charm/src/helpers/aabb.ts:98


halfsize

get halfsize(): vec3

Returns

vec3

Defined in

packages/charm/src/helpers/aabb.ts:106


max

get max(): vec3

set max(v): void

Parameters

v: vec3

Returns

vec3

Defined in

packages/charm/src/helpers/aabb.ts:42


min

get min(): vec3

set min(v): void

Parameters

v: vec3

Returns

vec3

Defined in

packages/charm/src/helpers/aabb.ts:36


radius

get radius(): number

Returns

number

Defined in

packages/charm/src/helpers/aabb.ts:114

Methods

copyFrom()

copyFrom(v): void

Parameters

v: AABB

Returns

void

Defined in

packages/charm/src/helpers/aabb.ts:118


reset()

reset(): void

Returns

void

Defined in

packages/charm/src/helpers/aabb.ts:21


testRay()

testRay(origin, dir): boolean

Parameters

origin: vec3

dir: vec3

Returns

boolean

Defined in

packages/charm/src/helpers/aabb.ts:122


transform()

transform(mat): void

Parameters

mat: mat4

Returns

void

Defined in

packages/charm/src/helpers/aabb.ts:65


union()

union(other): void

Parameters

other: AABB

Returns

void

Defined in

packages/charm/src/helpers/aabb.ts:49