Home Reference Source
import {BoundingBox} from './core/cg/cg_boundingbox.js'
public class | source

BoundingBox

bounding box

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public get

center: vec3

center of bounding box

public get

changed: *

public get

maxAxis: Number

get biggest number of maxX,maxY,maxZ

public get

maxX: Number

maximum x

public get

maxY: Number

maximum y

public get

maxZ: Number

maximum z

public get

minX: Number

minimum x

public get

minY: Number

minimum y

public get

minZ: Number

minimum z

public get

size: vec3

size of bounding box

public get

x: Number

center x

public get

y: Number

center y

public get

z: Number

center z

Private Members
private

_center: number[]

private

_first: boolean

private

_max: undefined[]

private

_maxAxis: number

private

_min: undefined[]

private

_size: number[]

private

Method Summary

Public Methods
public

apply(geom: *, mat: *)

public

applyPos(x: *, y: *, z: *)

public
public

copy(): *

returns a copy of the bounding box

public

mulMat4(m: *)

public

render(cgl: *, shader: *, op: *)

Private Methods
private

_init()

Public Constructors

public constructor() source

Public Members

public get center: vec3 source

center of bounding box

public get changed: * source

public get maxAxis: Number source

get biggest number of maxX,maxY,maxZ

public get maxX: Number source

maximum x

public get maxY: Number source

maximum y

public get maxZ: Number source

maximum z

public get minX: Number source

minimum x

public get minY: Number source

minimum y

public get minZ: Number source

minimum z

public get size: vec3 source

size of bounding box

public get x: Number source

center x

public get y: Number source

center y

public get z: Number source

center z

Private Members

private _center: number[] source

private _first: boolean source

private _max: undefined[] source

private _maxAxis: number source

private _min: undefined[] source

private _size: number[] source

private _wireMesh: * source

Public Methods

public apply(geom: *, mat: *) source

Params:

NameTypeAttributeDescription
geom *
mat *

public applyPos(x: *, y: *, z: *) source

Params:

NameTypeAttributeDescription
x *
y *
z *

public calcCenterSize() source

public copy(): * source

returns a copy of the bounding box

Return:

*

public mulMat4(m: *) source

Params:

NameTypeAttributeDescription
m *

public render(cgl: *, shader: *, op: *) source

Params:

NameTypeAttributeDescription
cgl *
shader *
op *

Private Methods

private _init() source