public class Rot
- Object
- Rot
Represents a rotation
Fields
public float s | |
public float c |
Constructors
public Rot() | |
public Rot(float angle) |
Methods
Inherited methods
Field details
s
public float sc
public float cConstructor details
Rot
public Rot()Rot
public Rot(float angle)Method details
getSin
public float getSin()toString
public String toString()Returns a string representation of the object. In general, the toString method returns a string that “textually represents” this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.
The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@’, and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:
getClass().getName() + ‘@’ + Integer.toHexString(hashCode())
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()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)