# Class: BoundBox
# Table of contents
# Constructors
# Properties
# Accessors
# Methods
# Constructors
# constructor
• new BoundBox(raw?
, offset?
)
# Parameters
Name | Type |
---|---|
raw? | Float32Array |
offset? | number |
# Properties
# OFFSETS
▪ Static
Readonly
OFFSETS: Readonly
<{ center
: number
= 0; size
: number
= 3 }>
# Accessors
# center
• get
center(): Vector3
包围盒中心
memberof
BoundBox
# Returns
• set
center(val
): void
包围盒中心
# Parameters
Name | Type |
---|---|
val | Vector3 |
# Returns
void
# size
• get
size(): Vector3
包围盒尺寸
memberof
BoundBox
# Returns
• set
size(val
): void
包围盒尺寸
# Parameters
Name | Type |
---|---|
val | Vector3 |
# Returns
void
# Methods
# addPoint
▸ addPoint(corner
): void
# Parameters
Name | Type |
---|---|
corner | Vector3 |
# Returns
void
# endInitByPoints
▸ endInitByPoints(): void
# Returns
void
# initByPoints
▸ initByPoints(points
, length?
): void
# Parameters
Name | Type |
---|---|
points | Vector3 [] |
length? | number |
# Returns
void
# setValue
▸ setValue(center
, size
): BoundBox
设置值
memberof
BoundBox
# Parameters
# Returns
# startInitByPoints
▸ startInitByPoints(): void
# Returns
void
# createFromCenterAndSize
▸ Static
createFromCenterAndSize(center
, size
): BoundBox
使用中心和尺寸创建包围球
static
memberof
BoundBall