A 3D transformation (scale, rotation, translation).
|
enum | VuoTransformType { VuoTransformTypeEuler,
VuoTransformTypeQuaternion
} |
| The type of rotation description used to construct this transform. More...
|
|
|
void | VuoTransform_getMatrix (const VuoTransform value, float *matrix) |
| Converts value into a column-major matrix of 16 values, composed as a rotation followed by a scale followed by a translation.
|
|
VuoTransform | VuoTransform_makeIdentity (void) |
| Creates a VuoTransform with no effect.
|
|
VuoTransform | VuoTransform_makeEuler (VuoPoint3d translation, VuoPoint3d rotation, VuoPoint3d scale) |
| Creates a VuoTransform from translation, rotation (Euler angles, in radians), and scale values.
|
|
VuoTransform | VuoTransform_makeQuaternion (VuoPoint3d translation, VuoPoint4d rotation, VuoPoint3d scale) |
| Creates a VuoTransform from translation, rotation (quaternion), and scale values.
|
|
VuoTransform | VuoTransform_valueFromJson (json_object *js) |
| Decodes the JSON object js to create a new value.
|
|
json_object * | VuoTransform_jsonFromValue (const VuoTransform value) |
| Encodes value as a JSON object.
|
|
char * | VuoTransform_summaryFromValue (const VuoTransform value) |
| Produces a brief human-readable summary of value .
|
|
VuoTransform | VuoTransform_makeFrom2d (VuoTransform2d transform2d) |
| Creates a 3D transform from a 2D transform.
|
|
VuoTransform | VuoTransform_valueFromString (const char *str) |
| Automatically generated function.
|
|
char * | VuoTransform_stringFromValue (const VuoTransform value) |
| Automatically generated function.
|
|
union VuoTransform.rotationSource |
The type of rotation description used to construct this transform.
void VuoTransform_getMatrix |
( |
const VuoTransform |
value, |
|
|
float * |
matrix |
|
) |
| |
Converts value
into a column-major matrix of 16 values, composed as a rotation followed by a scale followed by a translation.
struct json_object * VuoTransform_jsonFromValue |
( |
const VuoTransform |
value | ) |
|
|
read |
Encodes value
as a JSON object.
Creates a VuoTransform
from translation, rotation (Euler angles, in radians), and scale values.
Creates a 3D transform from a 2D transform.
Creates a VuoTransform
from translation, rotation (quaternion), and scale values.
char* VuoTransform_stringFromValue |
( |
const VuoTransform |
value | ) |
|
Automatically generated function.
char * VuoTransform_summaryFromValue |
( |
const VuoTransform |
value | ) |
|
Produces a brief human-readable summary of value
.
Decodes the JSON object js
to create a new value.
- Example:
-
- Example:
{
"quaternionRotation" = [0,0,0,1],
"translation" = [0,0,0],
"scale" = [1,1,1]
}
- Example:
{
"eulerRotation" = [0,0,0],
"translation" = [0,0,0],
"scale" = [1,1,1]
}
VuoTransform VuoTransform_valueFromString |
( |
const char * |
str | ) |
|
Automatically generated function.