public class Rot

  1. Object
  2. Rot
Represents a rotation

Fields

public float s
public float c

Constructors

public Rot()
public Rot(float angle)

Methods

public float getSin()
public String toString()Returns a string representation of the object.
public float getCos()
public Rot set(float angle)
public Rot set(Rot other)
public Rot setIdentity()
public float getAngle()
public void getXAxis(Vec2 xAxis)
public void getYAxis(Vec2 yAxis)
public Rot clone()
public static final void mul(Rot q, Rot r, Rot out)
public static final void mulUnsafe(Rot q, Rot r, Rot out)
public static final void mulTrans(Rot q, Rot r, Rot out)
public static final void mulTransUnsafe(Rot q, Rot r, Rot out)
public static final void mulToOut(Rot q, Vec2 v, Vec2 out)
public static final void mulToOutUnsafe(Rot q, Vec2 v, Vec2 out)
public static final void mulTrans(Rot q, Vec2 v, Vec2 out)
public static final void mulTransUnsafe(Rot q, Vec2 v, Vec2 out)

Inherited methods

Field details

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 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)