public class Transform
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
Vec2 |
p
The translation caused by the transform
|
Rot |
q
A matrix representing a rotation
|
Constructor and Description |
---|
Transform()
The default constructor.
|
Transform(Transform xf)
Initialize as a copy of another transform.
|
Transform(Vec2 _position,
Rot _R)
Initialize using a position vector and a rotation matrix.
|
Modifier and Type | Method and Description |
---|---|
static Transform |
mul(Transform A,
Transform B) |
static Vec2 |
mul(Transform T,
Vec2 v) |
static void |
mulToOut(Transform A,
Transform B,
Transform out) |
static void |
mulToOut(Transform T,
Vec2 v,
Vec2 out) |
static void |
mulToOutUnsafe(Transform A,
Transform B,
Transform out) |
static void |
mulToOutUnsafe(Transform T,
Vec2 v,
Vec2 out) |
static Transform |
mulTrans(Transform A,
Transform B) |
static Vec2 |
mulTrans(Transform T,
Vec2 v) |
static void |
mulTransToOut(Transform A,
Transform B,
Transform out) |
static void |
mulTransToOut(Transform T,
Vec2 v,
Vec2 out) |
static void |
mulTransToOutUnsafe(Transform A,
Transform B,
Transform out) |
static void |
mulTransToOutUnsafe(Transform T,
Vec2 v,
Vec2 out) |
Transform |
set(Transform xf)
Set this to equal another transform.
|
void |
set(Vec2 p,
float angle)
Set this based on the position and angle.
|
void |
setIdentity()
Set this to the identity transform.
|
java.lang.String |
toString() |
public final Vec2 p
public final Rot q
public Transform()
public Transform(Transform xf)
public final void set(Vec2 p, float angle)
p
- angle
- public final void setIdentity()
public static final void mulTransToOutUnsafe(Transform A, Transform B, Transform out)
public final java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2017. All Rights Reserved.