Class Transform
Inheritance
java.lang.Object
Transform
Constructors
Declaration
Fields
Declaration
public static final Vector3f X_AXIS= new Vector3f(1, 0, 0)
Field Value
Declaration
public static final Vector3f XY_AXIS= new Vector3f(1, 1, 0)
Field Value
Declaration
public static final Vector3f XYZ_AXIS= new Vector3f(1, 1, 1)
Field Value
Declaration
public static final Vector3f Y_AXIS= new Vector3f(0, 1, 0)
Field Value
Declaration
public static final Vector3f YZ_AXIS= new Vector3f(0, 1, 1)
Field Value
Declaration
public static final Vector3f Z_AXIS= new Vector3f(0, 0, 1)
Field Value
Declaration
public static final Vector3f ZX_AXIS= new Vector3f(1, 0, 1)
Field Value
Methods
Declaration
public static float getFov()
Returns
Declaration
public static float getHeight()
Returns
Declaration
public Quaternion getLookAtDirection(Vector3f point, Vector3f up)
Parameters
Returns
Declaration
public Transform getParent()
Returns
Declaration
public Vector3f getPosition()
Returns
Declaration
public Quaternion getRotation()
Returns
Declaration
public Vector3f getScale()
Returns
Declaration
public Matrix4f getTransformation()
Returns
Declaration
public Vector3f getTransformedPosition()
Returns
Declaration
public Quaternion getTransformedRotation()
Returns
Declaration
public static float getWidth()
Returns
Declaration
public static float getzFar()
Returns
Declaration
public static float getzNear()
Returns
Declaration
public boolean hasChanged()
Returns
Declaration
public void lookAt(Vector3f point, Vector3f up)
Parameters
Declaration
public void rotate(Vector3f axis, float anglerad)
Parameters
Type |
Name |
Description |
Vector3f |
axis |
|
float |
anglerad |
|
Declaration
public static void setFov(float fov)
Parameters
Type |
Name |
Description |
float |
fov |
|
Declaration
public static void setHeight(float height)
Parameters
Type |
Name |
Description |
float |
height |
|
Declaration
public void setParent(Transform parent)
Parameters
Declaration
public void setPosition(Vector3f translation)
Parameters
Type |
Name |
Description |
Vector3f |
translation |
|
Declaration
public void setRotation(float x, float y, float z, float w)
Parameters
Type |
Name |
Description |
float |
x |
|
float |
y |
|
float |
z |
|
float |
w |
|
Declaration
public void setRotation(Quaternion rotation)
Parameters
Declaration
public void setScale(float scale)
Parameters
Type |
Name |
Description |
float |
scale |
|
Declaration
public void setScale(float x, float y, float z)
Parameters
Type |
Name |
Description |
float |
x |
|
float |
y |
|
float |
z |
|
Declaration
public void setScale(Vector3f scale)
Parameters
Declaration
public Transform setTranslation(float x, float y, float z)
Parameters
Type |
Name |
Description |
float |
x |
|
float |
y |
|
float |
z |
|
Returns
Declaration
public Transform setTranslation(Vector3f trs)
Parameters
Returns
Declaration
public static void setWidth(float width)
Parameters
Type |
Name |
Description |
float |
width |
|
Declaration
public static void setzFar(float zFar)
Parameters
Type |
Name |
Description |
float |
zFar |
|
Declaration
public static void setzNear(float zNear)
Parameters
Type |
Name |
Description |
float |
zNear |
|
Declaration