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 |
_wireMesh: * |
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 changed: * source
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:
Name | Type | Attribute | Description |
geom | * | ||
mat | * |
public applyPos(x: *, y: *, z: *) source
Params:
Name | Type | Attribute | Description |
x | * | ||
y | * | ||
z | * |
public calcCenterSize() source
public mulMat4(m: *) source
Params:
Name | Type | Attribute | Description |
m | * |
public render(cgl: *, shader: *, op: *) source
Params:
Name | Type | Attribute | Description |
cgl | * | ||
shader | * | ||
op | * |