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

Description

A floating-point number.

Typedefs

typedef double VuoReal
 A floating-point number.
 

Functions

json_object * VuoReal_jsonFromValue (const VuoReal value)
 Encodes value as a JSON object.
 
char * VuoReal_summaryFromValue (const VuoReal value)
 Returns a string representation of value (either decimal or scientific notation, whichever is shorter).
 
VuoReal VuoReal_valueFromJson (struct json_object *js)
 Decodes the JSON object js, expected to contain a double, to create a new value.
 
VuoReal VuoReal_min (VuoReal *terms, unsigned long termsCount)
 Returns the minimum of an array of terms, or 0 if the array is empty.
 
VuoReal VuoReal_max (VuoReal *terms, unsigned long termsCount)
 Returns the maximum of an array of terms, or 0 if the array is empty.
 
static VuoReal VuoReal_add (VuoReal a, VuoReal b) __attribute__((const ))
 a+b
 
static VuoReal VuoReal_subtract (VuoReal a, VuoReal b) __attribute__((const ))
 a-b
 
static VuoReal VuoReal_multiply (VuoReal a, VuoReal b) __attribute__((const ))
 a*b
 
static VuoReal VuoReal_divide (VuoReal a, VuoReal b) __attribute__((const ))
 a/b
 
static VuoReal VuoReal_distance (VuoReal a, VuoReal b) __attribute__((const ))
 Distance between a and b.
 
static VuoReal VuoReal_lerp (VuoReal a, VuoReal b, float t) __attribute__((const ))
 Returns a linearly interpolated value between a and b using time t.
 
static VuoReal VuoReal_spring (VuoReal timeSinceDrop, VuoReal dropPosition, VuoReal restingPosition, VuoReal period, VuoReal damping)
 Calculates a position along the path of an oscillating spring.
 
static VuoReal VuoReal_clamp (VuoReal value, VuoReal min, VuoReal max)
 Limits value to values between min and max, inclusive.
 
static VuoReal VuoReal_bezier3 (VuoReal p0, VuoReal p1, VuoReal p2, VuoReal p3, VuoReal time)
 Calculates a position along a cubic bezier curve.
 
static VuoReal VuoReal_snap (VuoReal a, VuoReal center, VuoReal snap)
 Snap value a to the nearest increment of value snap.
 
VuoReal VuoReal_valueFromString (const char *str)
 Automatically generated function.
 
char * VuoReal_stringFromValue (const VuoReal value)
 Automatically generated function.
 
void VuoReal_retain (VuoReal value)
 Automatically generated function.
 
void VuoReal_release (VuoReal value)
 Automatically generated function.
 

Typedef Documentation

typedef double VuoReal

A floating-point number.

Function Documentation

static VuoReal VuoReal_add ( VuoReal  a,
VuoReal  b 
) const
inlinestatic

a+b

Provided for generic type equivalence with VuoPoints.

static VuoReal VuoReal_bezier3 ( VuoReal  p0,
VuoReal  p1,
VuoReal  p2,
VuoReal  p3,
VuoReal  time 
)
inlinestatic

Calculates a position along a cubic bezier curve.

Parameters
p0The curve's starting position.
p1The control point for the curve's starting position.
p2The control point for the curve's ending position.
p3The curve's ending position.
timeWhich value along the curve should be returned. 0 = starting position, 1 = ending position.
static VuoReal VuoReal_clamp ( VuoReal  value,
VuoReal  min,
VuoReal  max 
)
inlinestatic

Limits value to values between min and max, inclusive.

static VuoReal VuoReal_distance ( VuoReal  a,
VuoReal  b 
) const
inlinestatic

Distance between a and b.

static VuoReal VuoReal_divide ( VuoReal  a,
VuoReal  b 
) const
inlinestatic

a/b

Provided for generic type equivalence with VuoPoints.

struct json_object * VuoReal_jsonFromValue ( const VuoReal  value)
read

Encodes value as a JSON object.

static VuoReal VuoReal_lerp ( VuoReal  a,
VuoReal  b,
float  t 
) const
inlinestatic

Returns a linearly interpolated value between a and b using time t.

t is between 0 and 1.

VuoReal VuoReal_max ( VuoReal terms,
unsigned long  termsCount 
)

Returns the maximum of an array of terms, or 0 if the array is empty.

VuoReal VuoReal_min ( VuoReal terms,
unsigned long  termsCount 
)

Returns the minimum of an array of terms, or 0 if the array is empty.

static VuoReal VuoReal_multiply ( VuoReal  a,
VuoReal  b 
) const
inlinestatic

a*b

Provided for generic type equivalence with VuoPoints.

void VuoReal_release ( VuoReal  value)

Automatically generated function.

void VuoReal_retain ( VuoReal  value)

Automatically generated function.

static VuoReal VuoReal_snap ( VuoReal  a,
VuoReal  center,
VuoReal  snap 
)
inlinestatic

Snap value a to the nearest increment of value snap.

static VuoReal VuoReal_spring ( VuoReal  timeSinceDrop,
VuoReal  dropPosition,
VuoReal  restingPosition,
VuoReal  period,
VuoReal  damping 
)
inlinestatic

Calculates a position along the path of an oscillating spring.

char* VuoReal_stringFromValue ( const VuoReal  value)

Automatically generated function.

static VuoReal VuoReal_subtract ( VuoReal  a,
VuoReal  b 
) const
inlinestatic

a-b

Provided for generic type equivalence with VuoPoints.

char * VuoReal_summaryFromValue ( const VuoReal  value)

Returns a string representation of value (either decimal or scientific notation, whichever is shorter).

VuoReal VuoReal_valueFromJson ( struct json_object *  js)

Decodes the JSON object js, expected to contain a double, to create a new value.

VuoReal VuoReal_valueFromString ( const char *  str)

Automatically generated function.