Class Rot
java.lang.Object
org.jbox2d.common.Rot
- All Implemented Interfaces:
java.io.Serializable
public class Rot
extends java.lang.Object
implements java.io.Serializable
Represents a rotation
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()floatgetAngle()floatgetCos()floatgetSin()voidvoidstatic final voidstatic final voidstatic final voidmulToOutUnsafe(Rot q, Vec2 v, Vec2 out) static final voidstatic final voidstatic final voidmulTransUnsafe(Rot q, Rot r, Rot out) static final voidmulTransUnsafe(Rot q, Vec2 v, Vec2 out) static final voidset(float angle) java.lang.StringtoString()Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
s
public float s -
c
public float c
-
-
Constructor Details
-
Rot
public Rot() -
Rot
public Rot(float angle)
-
-
Method Details
-
getSin
public float getSin() -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
getCos
public float getCos() -
set
-
set
-
setIdentity
-
getAngle
public float getAngle() -
getXAxis
-
getYAxis
-
clone
- Overrides:
clonein classjava.lang.Object
-
mul
-
mulUnsafe
-
mulTrans
-
mulTransUnsafe
-
mulToOut
-
mulToOutUnsafe
-
mulTrans
-
mulTransUnsafe
-