public class AxisSystem
extends java.lang.Object
| Constructor and Description |
|---|
AxisSystem(Axis up,
Axis front)
Constructs a new axis system
|
AxisSystem(CoordinateSystem coordinateSystem,
Axis up)
Constructs a new axis system
|
AxisSystem(CoordinateSystem coordinateSystem,
Axis up,
Axis front)
Constructs a new axis system
|
| Modifier and Type | Method and Description |
|---|---|
static AxisSystem |
fromAssetInfo(AssetInfo assetInfo)
Create
AxisSystem from AssetInfo |
CoordinateSystem |
getCoordinateSystem()
Gets the coordinate system of this axis system.
|
Axis |
getFront()
Gets the front vector of this axis system
|
Axis |
getUp()
Gets the up vector of this axis system.
|
Matrix4 |
transformTo(AxisSystem targetSystem)
Create a matrix used to convert from current axis system to target axis system.
|
public AxisSystem(CoordinateSystem coordinateSystem, Axis up)
coordinateSystem - The coordinate system used in this axis systemup - The up vector of the axis systempublic AxisSystem(Axis up, Axis front)
up - The up vector of the axis systemfront - The front vector of the axis systempublic AxisSystem(CoordinateSystem coordinateSystem, Axis up, Axis front)
coordinateSystem - The coordinate system used in this axis systemup - The up vector of the axis systemfront - The front vector of the axis systempublic CoordinateSystem getCoordinateSystem()
public Axis getUp()
public Axis getFront()
public Matrix4 transformTo(AxisSystem targetSystem)
targetSystem - Target axis systempublic static AxisSystem fromAssetInfo(AssetInfo assetInfo)
AxisSystem from AssetInfoassetInfo - From which asset info to read coordinate system, up and front vector.