Vuo  2.3.2
Classes | Functions
VuoTransform2d

Description

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

Classes

struct  VuoTransform2d
 A 2D transformation (scale, rotation, translation). More...
 

Functions

VuoTransform2d VuoTransform2d_makeIdentity (void)
 Creates a VuoTransform2d with no effect. More...
 
VuoTransform2d VuoTransform2d_make (VuoPoint2d translation, VuoReal rotation, VuoPoint2d scale)
 Creates a VuoTransform2d from translation, rotation (in radians), and scale values. More...
 
VuoTransform2d VuoTransform2d_makeFromJson (json_object *js)
 Decodes the JSON object js to create a new value. More...
 
json_objectVuoTransform2d_getJson (const VuoTransform2d value)
 Encodes value as a JSON object. More...
 
char * VuoTransform2d_getSummary (const VuoTransform2d value)
 Produces a brief human-readable summary of value. More...
 
VuoPoint2d VuoTransform2d_transform_VuoPoint2d (VuoTransform2d transform, VuoPoint2d point)
 Applies transform to point, using input Z coordinate 0 and discarding the transformed Z coordinate. More...
 
VuoPoint3d VuoTransform2d_transform_VuoPoint3d (VuoTransform2d transform, VuoPoint3d point)
 Applies transform to point. More...
 
static bool VuoTransform2d_isIdentity (const VuoTransform2d transform)
 Returns true if the transform is an identity (i.e., causes no change). More...
 
VuoTransform2d VuoTransform2d_makeFromString (const char *str)
 Automatically generated function. More...
 
char * VuoTransform2d_getString (const VuoTransform2d value)
 Automatically generated function. More...
 
void VuoTransform2d_retain (VuoTransform2d value)
 Automatically generated function. More...
 
void VuoTransform2d_release (VuoTransform2d value)
 Automatically generated function. More...
 

Class Documentation

◆ VuoTransform2d

struct VuoTransform2d
Class Members
VuoReal rotation Radians around the Z-axis.
VuoPoint2d scale
VuoPoint2d translation

Function Documentation

◆ VuoTransform2d_getJson()

struct json_object * VuoTransform2d_getJson ( const VuoTransform2d  value)

Encodes value as a JSON object.

Definition at line 92 of file VuoTransform2d.c.

◆ VuoTransform2d_getString()

char* VuoTransform2d_getString ( const VuoTransform2d  value)

Automatically generated function.

◆ VuoTransform2d_getSummary()

char * VuoTransform2d_getSummary ( const VuoTransform2d  value)

Produces a brief human-readable summary of value.

Definition at line 123 of file VuoTransform2d.c.

◆ VuoTransform2d_isIdentity()

static bool VuoTransform2d_isIdentity ( const VuoTransform2d  transform)
inlinestatic

Returns true if the transform is an identity (i.e., causes no change).

Definition at line 58 of file VuoTransform2d.h.

◆ VuoTransform2d_make()

VuoTransform2d VuoTransform2d_make ( VuoPoint2d  translation,
VuoReal  rotation,
VuoPoint2d  scale 
)

Creates a VuoTransform2d from translation, rotation (in radians), and scale values.

Definition at line 43 of file VuoTransform2d.c.

◆ VuoTransform2d_makeFromJson()

VuoTransform2d VuoTransform2d_makeFromJson ( json_object js)

Decodes the JSON object js to create a new value.

Example:
"identity"
Example:
{
"translation" = [0,0],
"rotation" = 1,
"scale" = [1,1]
}

Definition at line 65 of file VuoTransform2d.c.

◆ VuoTransform2d_makeFromString()

VuoTransform2d VuoTransform2d_makeFromString ( const char *  str)

Automatically generated function.

◆ VuoTransform2d_makeIdentity()

VuoTransform2d VuoTransform2d_makeIdentity ( void  )

Creates a VuoTransform2d with no effect.

Definition at line 34 of file VuoTransform2d.c.

◆ VuoTransform2d_release()

void VuoTransform2d_release ( VuoTransform2d  value)

Automatically generated function.

◆ VuoTransform2d_retain()

void VuoTransform2d_retain ( VuoTransform2d  value)

Automatically generated function.

◆ VuoTransform2d_transform_VuoPoint2d()

VuoPoint2d VuoTransform2d_transform_VuoPoint2d ( VuoTransform2d  transform,
VuoPoint2d  point 
)

Applies transform to point, using input Z coordinate 0 and discarding the transformed Z coordinate.

Definition at line 136 of file VuoTransform2d.c.

◆ VuoTransform2d_transform_VuoPoint3d()

VuoPoint3d VuoTransform2d_transform_VuoPoint3d ( VuoTransform2d  transform,
VuoPoint3d  point 
)

Applies transform to point.

Definition at line 144 of file VuoTransform2d.c.