Transform

A transform

Members

Functions

clear
void clear()

Clears the vector

matrix
Basis matrix()

Calculates the basis matrix for this transform.

onDeserialize
void onDeserialize(DataNode object, ModelState state)

Deserializes a transform from JSON.

onSerialize
void onSerialize(DataNode object)

Serializes the transform.

opBinary
Transform opBinary(Transform other)

Returns the result of 2 transforms multiplied together

Variables

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