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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description float
c
float
s
private static long
serialVersionUID
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Rot
clone()
float
getAngle()
float
getCos()
float
getSin()
void
getXAxis(Vec2 xAxis)
void
getYAxis(Vec2 yAxis)
static void
mul(Rot q, Rot r, Rot out)
static void
mulToOut(Rot q, Vec2 v, Vec2 out)
static void
mulToOutUnsafe(Rot q, Vec2 v, Vec2 out)
static void
mulTrans(Rot q, Rot r, Rot out)
static void
mulTrans(Rot q, Vec2 v, Vec2 out)
static void
mulTransUnsafe(Rot q, Rot r, Rot out)
static void
mulTransUnsafe(Rot q, Vec2 v, Vec2 out)
static void
mulUnsafe(Rot q, Rot r, Rot out)
Rot
set(float angle)
Rot
set(Rot other)
Rot
setIdentity()
java.lang.String
toString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
s
public float s
-
c
public float c
-
-
Method Detail
-
getSin
public float getSin()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getCos
public float getCos()
-
set
public Rot set(float angle)
-
setIdentity
public Rot setIdentity()
-
getAngle
public float getAngle()
-
getXAxis
public void getXAxis(Vec2 xAxis)
-
getYAxis
public void getYAxis(Vec2 yAxis)
-
clone
public Rot clone()
- Overrides:
clone
in classjava.lang.Object
-
-