Class Info
public final class Box implements Parcelable
包围盒。
Constructor Name
Box(Vector3 minVector, Vector3 maxVector)
构造方法,使用包围盒的最小值与最大值初始化Box。
Qualifier and Type
Method Name and Description
Vector3
getCentre()
获取包围盒中心坐标。
getMax()
获取包围盒的最大值坐标。
getMin()
获取包围盒的最小值坐标。
float
getSize()
获取包围盒的对角线长度。
void
transform(Matrix4 matrix)
移动包围盒。
Constructor
public Box(Vector3 minVector, Vector3 maxVector)
构造方法,使用包围盒的最小值与最大值初始化。
Parameters
Name
Description
minVector
包围盒的最小值坐标。
maxVector
包围盒的最大值坐标。
Method
public Vector3 getCentre()
Returns
Type
包围盒中心坐标。
public Vector3 getMax()
public Vector3 getMin()
public float getSize()
包围盒对角线长度。
public void transform(Matrix4 matrix)
matrix
位移矩阵。