Package org.jbox2d.common
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()
float
getAngle()
float
getCos()
float
getSin()
void
void
static final void
static final void
static final void
mulToOutUnsafe
(Rot q, Vec2 v, Vec2 out) static final void
static final void
static final void
mulTransUnsafe
(Rot q, Rot r, Rot out) static final void
mulTransUnsafe
(Rot q, Vec2 v, Vec2 out) static final void
set
(float angle) java.lang.String
toString()
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:
toString
in classjava.lang.Object
-
getCos
public float getCos() -
set
-
set
-
setIdentity
-
getAngle
public float getAngle() -
getXAxis
-
getYAxis
-
clone
- Overrides:
clone
in classjava.lang.Object
-
mul
-
mulUnsafe
-
mulTrans
-
mulTransUnsafe
-
mulToOut
-
mulToOutUnsafe
-
mulTrans
-
mulTransUnsafe
-