Vuo  0.7.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions
VuoPoint4d

Description

A floating-point 4-dimensional point.

Classes

struct  VuoPoint4d
 A floating-point 4-dimensional point. More...
 

Functions

char * VuoPoint4d_summaryFromValue (const VuoPoint4d value)
 Returns a compact string representation of value (comma-separated coordinates).
 
VuoPoint4d VuoPoint4d_valueFromJson (struct json_object *js)
 Decodes the JSON object js to create a new value.
 
struct json_object * VuoPoint4d_jsonFromValue (const VuoPoint4d value)
 Encodes value as a JSON object.
 
static VuoPoint4d VuoPoint4d_make (float x, float y, float z, float w) __attribute__((const ))
 Returns a VuoPoint4d with the specified coordinates.
 
static VuoPoint4d VuoPoint4d_crossProduct (VuoPoint4d u, VuoPoint4d v) __attribute__((const ))
 Returns the 3D cross-product of u and v (ignoring the w coordinate).
 
static float VuoPoint4d_dotProduct (VuoPoint4d u, VuoPoint4d v) __attribute__((const ))
 Returns the dot product of u, v.
 
static float VuoPoint4d_magnitude (VuoPoint4d a) __attribute__((const ))
 Returns the magnitude of the vector.
 
static VuoPoint4d VuoPoint4d_normalize3d (VuoPoint4d a) __attribute__((const ))
 Returns the 3D normalization of a (ignoring the w coordinate).
 
static VuoPoint4d VuoPoint4d_normalize (VuoPoint4d a) __attribute__((const ))
 Returns the 4D normalization of a.
 
static VuoPoint4d VuoPoint4d_add (VuoPoint4d a, VuoPoint4d b) __attribute__((const ))
 a + b.
 
static VuoPoint4d VuoPoint4d_subtract (VuoPoint4d a, VuoPoint4d b) __attribute__((const ))
 a - b.
 
static float VuoPoint4d_squaredMagnitude (VuoPoint4d a) __attribute__((const ))
 Returns the magnitude of the vector.
 
static VuoPoint4d VuoPoint4d_divide (VuoPoint4d a, float b) __attribute__((const ))
 a / b
 
static VuoPoint4d VuoPoint4d_multiply (VuoPoint4d a, float b) __attribute__((const ))
 a * b
 
static float VuoPoint4d_distance (VuoPoint4d a, VuoPoint4d b) __attribute__((const ))
 Distance between a and b.
 
static VuoPoint4d VuoPoint4d_snap (VuoPoint4d a, VuoPoint4d center, VuoPoint4d snap) __attribute__((const ))
 Returns a component-wise snap value using a center point and snap value.
 
VuoPoint4d VuoPoint4d_valueFromString (const char *str)
 Automatically generated function.
 
char * VuoPoint4d_stringFromValue (const VuoPoint4d value)
 Automatically generated function.
 

Class Documentation

struct VuoPoint4d
Class Members
float w
float x
float y
float z

Function Documentation

static VuoPoint4d VuoPoint4d_add ( VuoPoint4d  a,
VuoPoint4d  b 
) const
inlinestatic

a + b.

static VuoPoint4d VuoPoint4d_crossProduct ( VuoPoint4d  u,
VuoPoint4d  v 
) const
inlinestatic

Returns the 3D cross-product of u and v (ignoring the w coordinate).

static float VuoPoint4d_distance ( VuoPoint4d  a,
VuoPoint4d  b 
) const
inlinestatic

Distance between a and b.

static VuoPoint4d VuoPoint4d_divide ( VuoPoint4d  a,
float  b 
) const
inlinestatic

a / b

static float VuoPoint4d_dotProduct ( VuoPoint4d  u,
VuoPoint4d  v 
) const
inlinestatic

Returns the dot product of u, v.

struct json_object* VuoPoint4d_jsonFromValue ( const VuoPoint4d  value)
read

Encodes value as a JSON object.

static float VuoPoint4d_magnitude ( VuoPoint4d  a) const
inlinestatic

Returns the magnitude of the vector.

static VuoPoint4d VuoPoint4d_make ( float  x,
float  y,
float  z,
float  w 
) const
inlinestatic

Returns a VuoPoint4d with the specified coordinates.

static VuoPoint4d VuoPoint4d_multiply ( VuoPoint4d  a,
float  b 
) const
inlinestatic

a * b

static VuoPoint4d VuoPoint4d_normalize ( VuoPoint4d  a) const
inlinestatic

Returns the 4D normalization of a.

static VuoPoint4d VuoPoint4d_normalize3d ( VuoPoint4d  a) const
inlinestatic

Returns the 3D normalization of a (ignoring the w coordinate).

static VuoPoint4d VuoPoint4d_snap ( VuoPoint4d  a,
VuoPoint4d  center,
VuoPoint4d  snap 
) const
inlinestatic

Returns a component-wise snap value using a center point and snap value.

static float VuoPoint4d_squaredMagnitude ( VuoPoint4d  a) const
inlinestatic

Returns the magnitude of the vector.

char* VuoPoint4d_stringFromValue ( const VuoPoint4d  value)

Automatically generated function.

static VuoPoint4d VuoPoint4d_subtract ( VuoPoint4d  a,
VuoPoint4d  b 
) const
inlinestatic

a - b.

char * VuoPoint4d_summaryFromValue ( const VuoPoint4d  value)

Returns a compact string representation of value (comma-separated coordinates).

VuoPoint4d VuoPoint4d_valueFromJson ( json_object *  js)

Decodes the JSON object js to create a new value.

Example:
{
"x" : 0.5,
"y" : 1,
"z" : 0,
"w" : 0
}
VuoPoint4d VuoPoint4d_valueFromString ( const char *  str)

Automatically generated function.