AxisSystem
内容
[
隐藏
]Inheritance: java.lang.Object
public class AxisSystem
轴系是坐标系统、上向量和前向量的组合。
构造函数
| 构造函数 | 描述 |
|---|---|
| AxisSystem(CoordinateSystem coordinateSystem, Axis up) | 构造一个新的 axis system |
| AxisSystem(Axis up, Axis front) | 构造一个新的 axis system |
| AxisSystem(CoordinateSystem coordinateSystem, Axis up, Axis front) | 构造一个新的 axis system |
方法
| 方法 | 描述 |
|---|---|
| equals(Object arg0) | |
| fromAssetInfo(AssetInfo assetInfo) | 从 AssetInfo 创建 AxisSystem |
| getClass() | |
| getCoordinateSystem() | 获取此 axis system 的坐标系。 |
| getFront() | 获取此 axis system 的前向量 |
| getUp() | 获取此 axis system 的上向量。 |
| hashCode() | |
| notify() | |
| notifyAll() | |
| toString() | |
| transformTo(AxisSystem targetSystem) | 创建一个矩阵,用于将当前 axis system 转换为目标 axis system。 |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
AxisSystem(CoordinateSystem coordinateSystem, Axis up)
public AxisSystem(CoordinateSystem coordinateSystem, Axis up)
构造一个新的 axis system
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| coordinateSystem | CoordinateSystem | 此 axis system 中使用的坐标系 |
| up | Axis | axis system 的上向量 |
AxisSystem(Axis up, Axis front)
public AxisSystem(Axis up, Axis front)
构造一个新的 axis system
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| up | Axis | axis system 的上向量 |
| front | Axis | axis system 的前向量 |
AxisSystem(CoordinateSystem coordinateSystem, Axis up, Axis front)
public AxisSystem(CoordinateSystem coordinateSystem, Axis up, Axis front)
构造一个新的 axis system
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| coordinateSystem | CoordinateSystem | 此 axis system 中使用的坐标系 |
| up | Axis | axis system 的上向量 |
| front | Axis | axis system 的前向量 |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | java.lang.Object |
Returns: 布尔
fromAssetInfo(AssetInfo assetInfo)
public static AxisSystem fromAssetInfo(AssetInfo assetInfo)
从 AssetInfo 创建 AxisSystem
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| assetInfo | AssetInfo | 从哪个资产信息读取坐标系、上向量和前向量。 |
Returns: AxisSystem - Axis system containg coordinate system, up, front from given asset info
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getCoordinateSystem()
public CoordinateSystem getCoordinateSystem()
获取此 axis system 的坐标系。
Returns: CoordinateSystem - the coordinate system of this axis system.
getFront()
public Axis getFront()
获取此 axis system 的前向量
Returns: Axis - the front vector of this axis system
getUp()
public Axis getUp()
获取此 axis system 的上向量。
Returns: Axis - the up vector of this axis system.
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
toString()
public String toString()
Returns: java.lang.String
transformTo(AxisSystem targetSystem)
public Matrix4 transformTo(AxisSystem targetSystem)
创建一个矩阵,用于将当前 axis system 转换为目标 axis system。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| targetSystem | AxisSystem | 目标 axis system |
Returns: Matrix4 - A new transformation matrix to do the axis conversion
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| arg0 | long | |
| arg1 | int |