Vuo  2.0.2
Functions
VuoTransform.c File Reference

Description

VuoTransform implementation.

Definition in file VuoTransform.c.

Go to the source code of this file.

Functions

void VuoTransform_getMatrix (const VuoTransform value, float *matrix)
 
void VuoTransform_invertMatrix4x4 (const float *matrix, float *outputInvertedMatrix)
 Outputs the inverse of matrix (which is assumed to consist of a rotation followed by a scale followed by a translation, like the output of VuoTransform_getMatrix), such that outputInvertedMatrix * matrix = identityMatrix. More...
 
VuoPoint3d VuoTransform_getEuler (const VuoTransform transform)
 Returns the transform's rotation, represented as euler angles in radians (see VuoTransform_makeEuler). More...
 
VuoPoint4d VuoTransform_getQuaternion (const VuoTransform transform)
 Returns the transform's rotation, represented as a quaternion (see VuoTransform_makeQuaternion). More...
 
VuoPoint3d VuoTransform_getDirection (const VuoTransform transform)
 
VuoTransform VuoTransform_makeIdentity (void)
 
VuoTransform VuoTransform_makeEuler (VuoPoint3d translation, VuoPoint3d rotation, VuoPoint3d scale)
 
void VuoTransform_rotationMatrixFromQuaternion (const VuoPoint4d quaternion, float *matrix)
 Populate a 3x3 matrix with a normalized quaternion. More...
 
void VuoTransform_rotationMatrixFromEuler (const VuoPoint3d euler, float *matrix)
 Populate a 3x3 matrix with an euler rotation. More...
 
VuoTransform VuoTransform_makeQuaternion (VuoPoint3d translation, VuoPoint4d rotation, VuoPoint3d scale)
 
VuoTransform VuoTransform_makeFrom2d (VuoTransform2d transform2d)
 Creates a 3D transform from a 2D transform. More...
 
VuoTransform2d VuoTransform_get2d (VuoTransform transform)
 Creates a 2D transform from a 3D transform. More...
 
VuoTransform VuoTransform_makeFromTarget (VuoPoint3d position, VuoPoint3d target, VuoPoint3d upDirection)
 Create a transform that translates to position and looks at target with roll determined by upDirection. More...
 
VuoTransform VuoTransform_makeFromMatrix4x4 (const float *matrix)
 Creates a transform from the specified matrix (assumed to consist of affine rotation, scale, and translation). More...
 
VuoPoint2d VuoTransform_transform_VuoPoint2d (VuoTransform transform, VuoPoint2d point)
 Applies transform to point, using input Z coordinate 0 and discarding the transformed Z coordinate. More...
 
VuoPoint3d VuoTransform_transform_VuoPoint3d (VuoTransform transform, VuoPoint3d point)
 Applies transform to point. More...
 
VuoRectangle VuoTransform_transformRectangle (const float *matrix, VuoRectangle rectangle)
 Transforms rectangle using matrix (a column-major matrix of 16 values), and returns the new rectangle. More...
 
void VuoTransform_getBillboardMatrix (VuoInteger imageWidth, VuoInteger imageHeight, VuoReal imageScaleFactor, VuoBoolean preservePhysicalSize, VuoReal translationX, VuoReal translationY, VuoInteger viewportWidth, VuoInteger viewportHeight, VuoReal backingScaleFactor, VuoPoint2d mesh0, float *billboardMatrix)
 Returns a column-major matrix of 16 values that transforms a 1x1 quad so that it renders the specified image at real (pixel-perfect) size. More...
 
VuoTransform VuoTransform_composite (const VuoTransform a, const VuoTransform b)
 Returns a composite transformation, consisting of a followed by b. More...
 
VuoPoint4d VuoTransform_quaternionFromBasis (VuoPoint3d basis[3])
 Returns a quaternion representing the rotation of the specified basis matrix. More...
 
VuoTransform VuoTransform_makeFromJson (json_object *js)
 
static float cook (float f)
 If the float is negative or positive zero, return positive zero. More...
 
json_objectVuoTransform_getJson (const VuoTransform value)
 
char * VuoTransform_getSummary (const VuoTransform value)
 

Function Documentation

◆ cook()

static float cook ( float  f)
inlinestatic

If the float is negative or positive zero, return positive zero.

Definition at line 583 of file VuoTransform.c.