org.jbox2d.common
Class Rot

java.lang.Object
  extended by org.jbox2d.common.Rot
All Implemented Interfaces:
Serializable

public class Rot
extends Object
implements Serializable

Represents a rotation

Author:
Daniel
See Also:
Serialized Form

Field Summary
 float c
           
 float s
           
 
Constructor Summary
Rot()
           
Rot(float angle)
           
 
Method Summary
 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()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

s

public float s

c

public float c
Constructor Detail

Rot

public Rot()

Rot

public Rot(float angle)
Method Detail

getSin

public float getSin()

toString

public String toString()
Overrides:
toString in class Object

getCos

public float getCos()

set

public Rot set(float angle)

set

public Rot set(Rot other)

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 class Object

mul

public static final void mul(Rot q,
                             Rot r,
                             Rot out)

mulUnsafe

public static final void mulUnsafe(Rot q,
                                   Rot r,
                                   Rot out)

mulTrans

public static final void mulTrans(Rot q,
                                  Rot r,
                                  Rot out)

mulTransUnsafe

public static final void mulTransUnsafe(Rot q,
                                        Rot r,
                                        Rot out)

mulToOut

public static final void mulToOut(Rot q,
                                  Vec2 v,
                                  Vec2 out)

mulToOutUnsafe

public static final void mulToOutUnsafe(Rot q,
                                        Vec2 v,
                                        Vec2 out)

mulTrans

public static final void mulTrans(Rot q,
                                  Vec2 v,
                                  Vec2 out)

mulTransUnsafe

public static final void mulTransUnsafe(Rot q,
                                        Vec2 v,
                                        Vec2 out)


Copyright © 2013. All Rights Reserved.