Constructors
constructor
- newobb(cx?: number, cy?: number, cz?: number, hw?: number, hh?: number, hl?: number, ox_1?: number, ox_2?: number, ox_3?: number, oy_1?: number, oy_2?: number, oy_3?: number, oz_1?: number, oz_2?: number, oz_3?: number): obb
-
Parameters
-
Default value cx: number = 0
-
Default value cy: number = 0
-
Default value cz: number = 0
-
Default value hw: number = 1
-
Default value hh: number = 1
-
Default value hl: number = 1
-
Default value ox_1: number = 1
-
Default value ox_2: number = 0
-
Default value ox_3: number = 0
-
Default value oy_1: number = 0
-
Default value oy_2: number = 1
-
Default value oy_3: number = 0
-
Default value oz_1: number = 0
-
Default value oz_2: number = 0
-
Default value oz_3: number = 1
Returns obb
Properties
Protected Readonly _type
_type: number
Methods
getBoundary
- getBoundary(minPos: Vec3, maxPos: Vec3): void
setScale
- setScale(scale: Vec3, out: obb): void
Static clone
-
Parameters
Returns obb
克隆出的新对象。
Static copy
-
Parameters
Returns obb
out 接受操作的 obb。
Static create
- create(cx: number, cy: number, cz: number, hw: number, hh: number, hl: number, ox_1: number, ox_2: number, ox_3: number, oy_1: number, oy_2: number, oy_3: number, oz_1: number, oz_2: number, oz_3: number): obb
-
Parameters
-
cx: number
-
cy: number
-
cz: number
-
hw: number
-
hh: number
-
hl: number
-
ox_1: number
-
ox_2: number
-
ox_3: number
-
oy_1: number
-
oy_2: number
-
oy_3: number
-
oz_1: number
-
oz_2: number
-
oz_3: number
Returns obb
返回一个 obb。
Static fromPoints
-
Parameters
Returns obb
out 接受操作的 obb。
Static set
- set(out: obb, cx: number, cy: number, cz: number, hw: number, hh: number, hl: number, ox_1: number, ox_2: number, ox_3: number, oy_1: number, oy_2: number, oy_3: number, oz_1: number, oz_2: number, oz_3: number): obb
-
Parameters
-
-
cx: number
-
cy: number
-
cz: number
-
hw: number
-
hh: number
-
hl: number
-
ox_1: number
-
ox_2: number
-
ox_3: number
-
oy_1: number
-
oy_2: number
-
oy_3: number
-
oz_1: number
-
oz_2: number
-
oz_3: number
Returns obb
out
基础几何 方向包围盒。