Package org.jbox2d.common
Class Rot
java.lang.Object
org.jbox2d.common.Rot
- All Implemented Interfaces:
Serializable
Represents a rotation
- Author:
- Daniel Murphy
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()floatgetAngle()floatgetCos()floatgetSin()voidvoidstatic voidstatic voidstatic voidmulToOutUnsafe(Rot q, Vec2 v, Vec2 out) static voidstatic voidstatic voidmulTransUnsafe(Rot q, Rot r, Rot out) static voidmulTransUnsafe(Rot q, Vec2 v, Vec2 out) static voidset(float angle)
-
Field Details
-
s
public float ssin -
c
public float ccos
-
-
Constructor Details
-
Rot
public Rot() -
Rot
public Rot(float angle)
-
-
Method Details
-
getSin
public float getSin() -
getCos
public float getCos() -
set
-
set
-
setIdentity
-
getAngle
public float getAngle() -
getXAxis
-
getYAxis
-
clone
-
mul
-
mulUnsafe
-
mulTrans
-
mulTransUnsafe
-
mulToOut
-
mulToOutUnsafe
-
mulTrans
-
mulTransUnsafe
-