Transform

A transform

Constructors

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

Initialize a transform

Members

Functions

calcOffset
Transform calcOffset(Transform other)
Undocumented in source. Be warned that the author may not have intended to support it.
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.
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

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