Transform

A transform

Constructors

this
this(vec3 translation, vec3 rotation, vec2 scale)

Initialize a transform

Members

Functions

clear
void clear()
Undocumented in source. Be warned that the author may not have intended to support it.
deserializeFromFghj
SerdeException deserializeFromFghj(Fghj data)
Undocumented in source. Be warned that the author may not have intended to support it.
lockRotation
void lockRotation(bool value)

Sets the locking value for all rotation axies

lockScale
void lockScale(bool value)

Locks all scale axies

lockTranslation
void lockTranslation(bool value)

Sets the locking value for all translation axies

matrix
mat4 matrix()

Gets the matrix for this transform

opBinary
Transform opBinary(Transform other)

Returns the result of 2 transforms multiplied together

serialize
void serialize(S serializer)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.
update
void update()

Updates the internal matrix of this transform

Variables

lockRotationX
bool lockRotationX;

Locks rotation on the X axis

lockRotationY
bool lockRotationY;

Locks rotation on the Y axis

lockRotationZ
bool lockRotationZ;

Locks rotation on the Z axis

lockScaleX
bool lockScaleX;

Locks scale on the X axis

lockScaleY
bool lockScaleY;

Locks scale on the Y axis

lockTranslationX
bool lockTranslationX;

Locks translation on the X axis

lockTranslationY
bool lockTranslationY;

Locks translation on the Y axis

lockTranslationZ
bool lockTranslationZ;

Locks translation on the Z axis

pixelSnap
bool pixelSnap;

Whether the transform should snap to pixels

rotation
vec3 rotation;

The rotation of the transform

scale
vec2 scale;

The scale of the transform

translation
vec3 translation;

The translation of the transform

Meta