M3D / M3D / M3DMath / BoundingBox
Class: BoundingBox
Memberof
M3D.M3DMath
Description
包围盒
Date
2022-1-12
Version
1.0
Copyright
All Rights Reserved. Copyright (C) 2022 HOTEAMSOFT, Ltd
Table of contents
Constructors
Properties
- defined
- max
- min
- BoundingBoxCount
- _MAX_BOX
- _NO_BOX
- _ZeroBox
- _boxIndexs
- _chicumIndex
- _triIndex
- points
- pointsArray
Methods
- Center
- Clear
- Clip
- Clone
- Define
- Defined
- GetTriangleArray
- GetVertexs
- GetXLength
- GetYLength
- GetZLength
- HalfSize
- IsInside
- IsInsideFast
- Length
- Merge
- Projected
- Release
- ScaleBox
- Size
- Tostring
- Transform
- Transformed
- copyFrom
- equals
- fromString
- getMaxLength
- getMinLength
- specificEquals
- MAX_BOX
- NO_BOX
- ZeroBox
- boxIndexs
- chicumIndex
- triIndex
Constructors
constructor
• new BoundingBox(): BoundingBox
Returns
Description
构造函数
• new BoundingBox(box
): BoundingBox
Parameters
Name | Type |
---|---|
box | BoundingBox |
Returns
Description
构造函数
• new BoundingBox(rect
): BoundingBox
Parameters
Name | Type |
---|---|
rect | Rect |
Returns
Description
构造函数
• new BoundingBox(frustum
): BoundingBox
Parameters
Name | Type |
---|---|
frustum | Frustum |
Returns
Description
构造函数
• new BoundingBox(min
, max
): BoundingBox
Parameters
Name | Type |
---|---|
min | Vector3 |
max | Vector3 |
Returns
Description
构造函数
• new BoundingBox(min
, max
): BoundingBox
Parameters
Name | Type |
---|---|
min | number |
max | number |
Returns
Description
构造函数
• new BoundingBox(vertices
, count
): BoundingBox
Parameters
Name | Type |
---|---|
vertices | Vector3 [] |
count | number |
Returns
Description
构造函数
Properties
defined
• defined: boolean
max
• max: Vector3
min
• min: Vector3
BoundingBoxCount
▪ Static
BoundingBoxCount: number
_MAX_BOX
▪ Static
_MAX_BOX: BoundingBox
_NO_BOX
▪ Static
_NO_BOX: BoundingBox
_ZeroBox
▪ Static
_ZeroBox: BoundingBox
_boxIndexs
▪ Static
_boxIndexs: number
[]
_chicumIndex
▪ Static
_chicumIndex: number
[]
_triIndex
▪ Static
_triIndex: any
points
▪ Static
points: Float32Array
pointsArray
▪ Static
pointsArray: Float32Array
Methods
Center
▸ Center(): Vector3