public class MrTransform
extends java.lang.Object
Constructor and Description |
---|
MrTransform() |
MrTransform(MrVector3f location,
MrQuaternion rotation) |
MrTransform(MrVector3f location,
MrQuaternion rotation,
MrVector3f scale) |
Modifier and Type | Method and Description |
---|---|
MrMatrix4f |
getAsMatrix() |
MrVector3f |
getForward() |
MrVector3f |
getLocation() |
MrVector3f |
getRight() |
MrQuaternion |
getRotation()
Getters*
|
MrVector3f |
getScale() |
MrVector3f |
getUp() |
void |
rotate(float angle,
float x,
float y,
float z) |
void |
rotate(float angle,
MrVector3f axis) |
void |
rotate(MrQuaternion q) |
void |
rotateAround(float angle,
MrVector3f point,
MrVector3f axis) |
void |
rotateAround(float angle,
MrVector3f point,
MrVector3f axis,
MrVector3f through) |
void |
scale(float s) |
void |
scale(float sx,
float sy,
float sz) |
void |
scale(MrVector3f s) |
void |
setLocation(float x,
float y,
float z) |
void |
setLocation(MrVector3f location)
Setters*
|
void |
setLookAt(MrVector3f look) |
void |
setLookAt(MrVector3f look,
MrVector3f up) |
void |
setRotation(float angle,
float x,
float y,
float z) |
void |
setRotation(float angle,
MrVector3f axis) |
void |
setRotation(MrQuaternion rotation) |
void |
setScale(float sx,
float sy,
float sz) |
void |
setScale(MrVector3f scale) |
void |
translate(float x,
float y,
float z)
Methods*
|
void |
translate(MrVector3f v) |
public MrTransform()
public MrTransform(MrVector3f location, MrQuaternion rotation, MrVector3f scale)
public MrTransform(MrVector3f location, MrQuaternion rotation)
public MrQuaternion getRotation()
public void setRotation(MrQuaternion rotation)
public MrVector3f getLocation()
public void setLocation(MrVector3f location)
public MrVector3f getUp()
public MrVector3f getRight()
public MrVector3f getForward()
public MrVector3f getScale()
public void setScale(MrVector3f scale)
public void setLocation(float x, float y, float z)
public void setScale(float sx, float sy, float sz)
public void setRotation(float angle, float x, float y, float z)
public void setRotation(float angle, MrVector3f axis)
public void setLookAt(MrVector3f look, MrVector3f up)
public void setLookAt(MrVector3f look)
public void translate(float x, float y, float z)
public void translate(MrVector3f v)
public void scale(float sx, float sy, float sz)
public void scale(float s)
public void scale(MrVector3f s)
public void rotate(MrQuaternion q)
public void rotate(float angle, float x, float y, float z)
public void rotate(float angle, MrVector3f axis)
public void rotateAround(float angle, MrVector3f point, MrVector3f axis, MrVector3f through)
public void rotateAround(float angle, MrVector3f point, MrVector3f axis)
public MrMatrix4f getAsMatrix()