VuoReal C type definition.
- Copyright
- Copyright © 2012–2019 Kosada Incorporated. This code may be modified and distributed under the terms of the MIT License. For more information, see https://vuo.org/license.
Definition in file VuoReal.h.
|
VuoReal | VuoReal_makeFromJson (json_object *js) |
|
json_object * | VuoReal_getJson (const VuoReal value) |
|
char * | VuoReal_getSummary (const VuoReal value) |
|
VuoReal | VuoReal_min (VuoReal *terms, unsigned long termsCount, VuoInteger *outputPosition) |
| Returns the minimum of an array of terms, or 0 if the array is empty. More...
|
|
VuoReal | VuoReal_max (VuoReal *terms, unsigned long termsCount, VuoInteger *outputPosition) |
| Returns the maximum of an array of terms, or 0 if the array is empty. More...
|
|
VuoReal | VuoReal_average (VuoList_VuoReal values) |
| Returns the average of the values in the list, or 0 if the list is empty. More...
|
|
VuoReal | VuoReal_wrap (VuoReal value, VuoReal minimum, VuoReal maximum) |
| Returns value if it is within the range of minimum (inclusive) to maximum (exclusive), otherwise a value wrapped with modular arithmetic to be within the range. More...
|
|
VuoReal | VuoReal_random (const VuoReal minimum, const VuoReal maximum) |
| Returns a pseudorandom value between minimum and maximum . More...
|
|
VuoReal | VuoReal_randomWithState (unsigned short state[3], const VuoReal minimum, const VuoReal maximum) |
| Returns a pseudorandom value between minimum and maximum . More...
|
|
static VuoReal | VuoReal_add (VuoReal a, VuoReal b) __attribute__((const)) |
| a+b More...
|
|
static VuoReal | VuoReal_subtract (VuoReal a, VuoReal b) __attribute__((const)) |
| a-b More...
|
|
static VuoReal | VuoReal_multiply (VuoReal a, VuoReal b) __attribute__((const)) |
| a*b More...
|
|
static VuoReal | VuoReal_scale (VuoReal a, VuoReal b) __attribute__((const)) |
| Same as VuoReal_multiply. More...
|
|
static VuoReal | VuoReal_divide (VuoReal a, VuoReal b) __attribute__((const)) |
| a/b More...
|
|
static VuoReal | VuoReal_makeNonzero (VuoReal a) __attribute__((const)) |
| If the value is zero or very close to zero, moves the value further from zero (either 0.000001 or -0.000001). More...
|
|
static VuoReal | VuoReal_distance (VuoReal a, VuoReal b) __attribute__((const)) |
| Distance between a and b . More...
|
|
static VuoReal | VuoReal_lerp (VuoReal a, VuoReal b, float t) __attribute__((const)) |
| Returns a linearly interpolated value between a and b using time t . More...
|
|
static VuoReal | VuoReal_spring (VuoReal timeSinceDrop, VuoReal dropPosition, VuoReal restingPosition, VuoReal period, VuoReal damping) |
| Calculates a position along the path of an oscillating spring. More...
|
|
static VuoReal | VuoReal_clamp (VuoReal value, VuoReal limitA, VuoReal limitB) |
| Limits value to values between limitA and limitB , inclusive. More...
|
|
static VuoReal | VuoReal_clampn (VuoReal value, VuoReal limitA, VuoReal limitB) |
| Same as VuoReal_clamp. More...
|
|
static VuoReal | VuoReal_bezier3 (VuoReal p0, VuoReal p1, VuoReal p2, VuoReal p3, VuoReal time) |
| Calculates a position along a cubic bezier curve. More...
|
|
static VuoReal | VuoReal_snap (VuoReal a, VuoReal center, VuoReal snap) |
| Snap value a to the nearest increment of value snap. More...
|
|
bool | VuoReal_areEqual (const VuoReal value1, const VuoReal value2) |
| Returns true if the two values are equal (within a small tolerance). More...
|
|
bool | VuoReal_isLessThan (const VuoReal a, const VuoReal b) |
| Returns true if a < b. More...
|
|
|
VuoReal | VuoReal_makeFromString (const char *str) |
| Automatically generated function. More...
|
|
char * | VuoReal_getString (const VuoReal value) |
| Automatically generated function. More...
|
|
void | VuoReal_retain (VuoReal value) |
| Automatically generated function. More...
|
|
void | VuoReal_release (VuoReal value) |
| Automatically generated function. More...
|
|
#define | VuoList_VuoReal_TYPE_DEFINED |
| List type. More...
|
|
typedef const struct VuoList_VuoReal_struct * | VuoList_VuoReal |
| List type. More...
|
|