public class Transform extends Object
| Modifier and Type | Field and Description |
|---|---|
static Vector3f |
X_AXIS |
static Vector3f |
Y_AXIS |
static Vector3f |
Z_AXIS |
| Constructor and Description |
|---|
Transform() |
| Modifier and Type | Method and Description |
|---|---|
void |
faceAt(Vector3f at,
Vector3f up) |
Quaternion |
getFaceAt(Vector3f at,
Vector3f up) |
Vector3f |
getPosition() |
Quaternion |
getRotation() |
Vector3f |
getScale() |
Matrix4f |
getTransformation() |
Vector3f |
getTransformedPosition() |
Quaternion |
getTransformedRotation() |
void |
rotate(Vector3f axis,
float angle)
Rotate around the given axis.
|
void |
setParent(Transform parent) |
void |
setPosition(Vector3f position) |
void |
setRotation(Quaternion rotation) |
void |
setScale(Vector3f scale) |
public static final Vector3f X_AXIS
public static final Vector3f Y_AXIS
public static final Vector3f Z_AXIS
public Matrix4f getTransformation()
public void rotate(Vector3f axis, float angle)
axis - Axis to rotate aroundangle - Angle in DEGREEpublic Quaternion getFaceAt(Vector3f at, Vector3f up)
public Vector3f getTransformedPosition()
public Vector3f getPosition()
public void setPosition(Vector3f position)
public Quaternion getTransformedRotation()
public Quaternion getRotation()
public void setRotation(Quaternion rotation)
public Vector3f getScale()
public void setScale(Vector3f scale)
public void setParent(Transform parent)
Copyright © 2014. All rights reserved.