AxisSystem
Inheritance: java.lang.Object
public class AxisSystem
Axis system is an combination of coordinate system, up vector and front vector.
Constructors
| Constructor | Description |
|---|---|
| AxisSystem(CoordinateSystem coordinateSystem, Axis up) | Constructs a new axis system |
| AxisSystem(Axis up, Axis front) | Constructs a new axis system |
| AxisSystem(CoordinateSystem coordinateSystem, Axis up, Axis front) | Constructs a new axis system |
Methods
| Method | Description |
|---|---|
| equals(Object arg0) | |
| fromAssetInfo(AssetInfo assetInfo) | Create AxisSystem from AssetInfo |
| getClass() | |
| getCoordinateSystem() | Gets the coordinate system of this axis system. |
| getFront() | Gets the front vector of this axis system |
| getUp() | Gets the up vector of this axis system. |
| hashCode() | |
| notify() | |
| notifyAll() | |
| toString() | |
| transformTo(AxisSystem targetSystem) | Create a matrix used to convert from current axis system to target axis system. |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
AxisSystem(CoordinateSystem coordinateSystem, Axis up)
public AxisSystem(CoordinateSystem coordinateSystem, Axis up)
Constructs a new axis system
Parameters:
| Parameter | Type | Description |
|---|---|---|
| coordinateSystem | CoordinateSystem | The coordinate system used in this axis system |
| up | Axis | The up vector of the axis system |
AxisSystem(Axis up, Axis front)
public AxisSystem(Axis up, Axis front)
Constructs a new axis system
Parameters:
| Parameter | Type | Description |
|---|---|---|
| up | Axis | The up vector of the axis system |
| front | Axis | The front vector of the axis system |
AxisSystem(CoordinateSystem coordinateSystem, Axis up, Axis front)
public AxisSystem(CoordinateSystem coordinateSystem, Axis up, Axis front)
Constructs a new axis system
Parameters:
| Parameter | Type | Description |
|---|---|---|
| coordinateSystem | CoordinateSystem | The coordinate system used in this axis system |
| up | Axis | The up vector of the axis system |
| front | Axis | The front vector of the axis system |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
fromAssetInfo(AssetInfo assetInfo)
public static AxisSystem fromAssetInfo(AssetInfo assetInfo)
Create AxisSystem from AssetInfo
Parameters:
| Parameter | Type | Description |
|---|---|---|
| assetInfo | AssetInfo | From which asset info to read coordinate system, up and front vector. |
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()
Gets the coordinate system of this axis system.
Returns: CoordinateSystem - the coordinate system of this axis system.
getFront()
public Axis getFront()
Gets the front vector of this axis system
Returns: Axis - the front vector of this axis system
getUp()
public Axis getUp()
Gets the up vector of this 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)
Create a matrix used to convert from current axis system to target axis system.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| targetSystem | AxisSystem | Target 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:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| arg0 | long | |
| arg1 | int |