Vuo  0.4.5
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Enumerations | Functions
VuoTransform

Description

A 3D transformation (scale, rotation, translation).

Classes

struct  VuoTransform
 A 3D transformation (scale, rotation, translation). More...
 
union  VuoTransform.__unnamed__
 

Enumerations

enum  VuoTransformType { VuoTransformTypeEuler, VuoTransformTypeQuaternion }
 The type of rotation description used to construct this transform.
 

Functions

VuoTransform VuoTransform_valueFromString (const char *initializer)
 Parses the C string initializer to create a new value.
 
char * VuoTransform_stringFromValue (const VuoTransform value)
 Serializes value as a C string.
 
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.
 
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.
 

Class Documentation

struct VuoTransform
Class Members
union VuoTransform __unnamed__
float rotation[9] Column-major 3x3 matrix.
VuoPoint3d scale
VuoPoint3d translation
enum VuoTransformType type
union VuoTransform.__unnamed__
Class Members
VuoPoint3d eulerRotation Radians.
VuoPoint4d quaternionRotation

Function Documentation

char * VuoTransform_stringFromValue ( const VuoTransform  value)

Serializes value as a C string.

Todo:
This function body will be generated by vuo-compile (https://b33p.net/kosada/node/5521)
VuoTransform VuoTransform_valueFromJson ( json_object *  js)

Decodes the JSON object js to create a new value.

Example:
"identity"
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 *  initializer)

Parses the C string initializer to create a new value.

Todo:
This function body will be generated by vuo-compile (https://b33p.net/kosada/node/5521)