Skip to main content

GizmoTransform

class GizmoTransform

Class responsible for modifying the position, rotation and scale of an element GizmoElement.


public class GizmoTransform extends GizmoElement

— Constructors (4) —

ConstructorDescription
GizmoTransform()Creates a new GizmoTransform.
GizmoTransform(Vector3 vertex)Creates a new GizmoTransform with its current position defined to be "position" argument.
GizmoTransform(Vector3 vertex, Quaternion rotation)Creates a new GizmoTransform with its current position defined to be "position" argument and rotation to be "rotation" argument.
GizmoTransform(Vector3 vertex, Quaternion rotation, Vector3 scale)Creates a new GizmoTransform with its current position defined to be "position" argument, rotation to be "rotation" argument and scale to be "scale" argument.

— Methods (14) —

NameDescription
Vector3 getPosition()Returns the current position of the GizmoTransform.
void setPosition(Vector3 position)Sets the current position of the GizmoTransform to be "position" argument.
void setPosition(float x, float y, float z)Sets the current X position of the GizmoTransform to be "x" argument, Y position to be "y" argument and Z position to be "z" argument.
void setPosition(float a)Sets the current position of the GizmoTransform to be "a" argument.
Quaternion getRotation()Returns the current GizmoTransform rotation.
void setRotation(Quaternion rotation)Sets the current rotation of the GizmoTransform to be "rotation" argument.
void setRotation(float x, float y, float z)Sets GizmoTransform's current X rotation to be "x" argument, Y rotation to be "y" argument, and Z rotation to be "z" argument.
void setRotation(float x, float y, float z, float w)Sets GizmoTransform's current X rotation to be "x" argument, Y rotation to be "y" argument, and Z rotation to be "z" argument, and W rotation to be "w" argument.
Vector3 getScale()Returns the current scale of GizmoTransform.
void setScale(Vector3 scale)Sets the current scale of the GizmoTransform to be "scale" argument.
void setScale(float x, float y, float z)Sets GizmoTransform's current width to be "x" argument, height to be "y" argument, and length to be "z" argument.
void setScale(float a)Sets the current scale of the GizmoTransform to be "a" argument.
float[] getMatrix()Returns the current render matrix of the GizmoTransform.
void setMatrix(float[] matrix)Sets the current rendering matrix of GizmoTransform to be "matrix" argument.