| Package | laya.d3.math |
| Class | public class BoundFrustum |
| Inheritance | BoundFrustum Object |
BoundFrustum 类用于创建锥截体。
| Property | Defined By | ||
|---|---|---|---|
| bottom : Plane [read-only]
获取底平面。
| BoundFrustum | ||
| far : Plane [read-only]
获取远平面。
| BoundFrustum | ||
| left : Plane [read-only]
获取左平面。
| BoundFrustum | ||
| matrix : Matrix4x4
获取描述矩阵。
| BoundFrustum | ||
| near : Plane [read-only]
获取近平面。
| BoundFrustum | ||
| right : Plane [read-only]
获取右平面。
| BoundFrustum | ||
| top : Plane [read-only]
获取顶平面。
| BoundFrustum | ||
| Method | Defined By | ||
|---|---|---|---|
BoundFrustum(matrix:Matrix4x4)
创建一个 BoundFrustum 实例。
| BoundFrustum | ||
containsBoundBox(box:BoundBox):int
与包围盒的位置关系。返回-1,包涵;0,相交;1,不相交
| BoundFrustum | ||
containsBoundSphere(sphere:BoundSphere):int
与包围球的位置关系。返回-1,包涵;0,相交;1,不相交
| BoundFrustum | ||
containsPoint(point:Vector3):int
与点的位置关系。返回-1,包涵;0,相交;1,不相交
| BoundFrustum | ||
equalsBoundFrustum(other:BoundFrustum):Boolean
判断是否与其他锥截体相等。
| BoundFrustum | ||
equalsObj(obj:Object):Boolean
判断是否与其他对象相等。
| BoundFrustum | ||
getCorners(corners:Vector.<Vector3>):void
锥截体的8个顶点。
| BoundFrustum | ||
获取锥截体的任意一平面。
0:近平面
1:远平面
2:左平面
3:右平面
4:顶平面
5:底平面
| BoundFrustum | ||
| bottom | property |
| far | property |
| left | property |
| matrix | property |
matrix:Matrix4x4获取描述矩阵。
public function get matrix():Matrix4x4 public function set matrix(value:Matrix4x4):void| near | property |
| right | property |
| top | property |
| BoundFrustum | () | Constructor |
public function BoundFrustum(matrix:Matrix4x4)
创建一个 BoundFrustum 实例。
matrix:Matrix4x4 — 锥截体的描述4x4矩阵。
|
| containsBoundBox | () | method |
public function containsBoundBox(box:BoundBox):int与包围盒的位置关系。返回-1,包涵;0,相交;1,不相交
Parameters
box:BoundBox — 包围盒。
|
int |
| containsBoundSphere | () | method |
public function containsBoundSphere(sphere:BoundSphere):int与包围球的位置关系。返回-1,包涵;0,相交;1,不相交
Parameters
sphere:BoundSphere — 包围球。
|
int |
| containsPoint | () | method |
public function containsPoint(point:Vector3):int与点的位置关系。返回-1,包涵;0,相交;1,不相交
Parameters
point:Vector3 — 点。
|
int |
| equalsBoundFrustum | () | method |
public function equalsBoundFrustum(other:BoundFrustum):Boolean判断是否与其他锥截体相等。
Parameters
other:BoundFrustum — 锥截体。
|
Boolean |
| equalsObj | () | method |
public function equalsObj(obj:Object):Boolean判断是否与其他对象相等。
Parameters
obj:Object — 对象。
|
Boolean |
| getCorners | () | method |
public function getCorners(corners:Vector.<Vector3>):void锥截体的8个顶点。
Parameters
corners:Vector.<Vector3> — 返回顶点的输出队列。
|
| getPlane | () | method |
public function getPlane(index:int):Plane获取锥截体的任意一平面。 0:近平面 1:远平面 2:左平面 3:右平面 4:顶平面 5:底平面
Parameters
index:int — 索引。
|
Plane |