Vuo  0.9.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
VuoReal.c File Reference

Description

VuoReal implementation.

Functions

VuoReal VuoReal_valueFromJson (json_object *js)
 Decodes the JSON object js, expected to contain a double, to create a new value.
 
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_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.
 
VuoReal VuoReal_average (VuoList_VuoReal values)
 Returns the average of the values in the list, or 0 if the list is empty.
 
VuoReal VuoReal_wrap (VuoReal value, VuoReal minimum, VuoReal maximum)
 Returns value if it is within the range of minimum to maximum (exclusive), otherwise a value wrapped with modular arithmetic to be within the range.
 
VuoReal VuoReal_random (const VuoReal minimum, const VuoReal maximum)
 Returns a pseudorandom value between minimum and maximum.
 
VuoReal VuoReal_randomWithState (unsigned short state[3], const VuoReal minimum, const VuoReal maximum)
 Returns a pseudorandom value between minimum and maximum.