AxisSystem

Inheritance: java.lang.Object

public class AxisSystem

Axelsystemet är en kombination av koordinatsystem, uppvektor och framvektor.

Konstruktörer

KonstruktorBeskrivning
AxisSystem(CoordinateSystem coordinateSystem, Axis up)Skapar ett nytt axelsystem
AxisSystem(Axis up, Axis front)Skapar ett nytt axelsystem
AxisSystem(CoordinateSystem coordinateSystem, Axis up, Axis front)Skapar ett nytt axelsystem

Metoder

MetodBeskrivning
equals(Object arg0)
fromAssetInfo(AssetInfo assetInfo)Skapa AxisSystem från AssetInfo
getClass()
getCoordinateSystem()Hämtar koordinatsystemet för detta axelsystem.
getFront()Hämtar framvektorn för detta axelsystem
getUp()Hämtar uppvektorn för detta axelsystem.
hashCode()
notify()
notifyAll()
toString()
transformTo(AxisSystem targetSystem)Skapa en matris som används för att konvertera från aktuellt axelsystem till målaxelsystem.
wait()
wait(long arg0)
wait(long arg0, int arg1)

AxisSystem(CoordinateSystem coordinateSystem, Axis up)

public AxisSystem(CoordinateSystem coordinateSystem, Axis up)

Skapar ett nytt axelsystem

Parameters:

ParameterTypBeskrivning
coordinateSystemCoordinateSystemKoordinatsystemet som används i detta axelsystem
upAxisUppvektorn för axelsystemet

AxisSystem(Axis up, Axis front)

public AxisSystem(Axis up, Axis front)

Skapar ett nytt axelsystem

Parameters:

ParameterTypBeskrivning
upAxisUppvektorn för axelsystemet
frontAxisFramvektorn för axelsystemet

AxisSystem(CoordinateSystem coordinateSystem, Axis up, Axis front)

public AxisSystem(CoordinateSystem coordinateSystem, Axis up, Axis front)

Skapar ett nytt axelsystem

Parameters:

ParameterTypBeskrivning
coordinateSystemCoordinateSystemKoordinatsystemet som används i detta axelsystem
upAxisUppvektorn för axelsystemet
frontAxisFramvektorn för axelsystemet

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypBeskrivning
arg0java.lang.Object

Returns: boolean

fromAssetInfo(AssetInfo assetInfo)

public static AxisSystem fromAssetInfo(AssetInfo assetInfo)

Skapa AxisSystem från AssetInfo

Parameters:

ParameterTypBeskrivning
assetInfoAssetInfoFrån vilken asset info som koordinatsystem, uppvektor och framvektor ska läsas.

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()

Hämtar koordinatsystemet för detta axelsystem.

Returns: CoordinateSystem - the coordinate system of this axis system.

getFront()

public Axis getFront()

Hämtar framvektorn för detta axelsystem

Returns: Axis - the front vector of this axis system

getUp()

public Axis getUp()

Hämtar uppvektorn för detta axelsystem.

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)

Skapa en matris som används för att konvertera från aktuellt axelsystem till målaxelsystem.

Parameters:

ParameterTypBeskrivning
targetSystemAxisSystemMålaxelsystem

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:

ParameterTypBeskrivning
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypBeskrivning
arg0long
arg1int