Vuo  2.3.2
Functions
VuoRange.c File Reference

Description

VuoRange implementation.

Definition in file VuoRange.c.

Go to the source code of this file.

Functions

VuoRange VuoRange_makeFromJson (json_object *js)
 Decodes the JSON object js to create a new value. More...
 
json_objectVuoRange_getJson (const VuoRange value)
 Encodes value as a JSON object. More...
 
char * VuoRange_getSummary (const VuoRange value)
 Returns a compact string representation of value. More...
 
bool VuoRange_areEqual (const VuoRange a, const VuoRange b)
 Returns true if the two ranges are equal (within a small tolerance). More...
 
bool VuoRange_isLessThan (const VuoRange a, const VuoRange b)
 Returns true if a < b. More...
 

Function Documentation

◆ VuoRange_areEqual()

bool VuoRange_areEqual ( const VuoRange  a,
const VuoRange  b 
)

Returns true if the two ranges are equal (within a small tolerance).

Changed in Vuo 2.0.0:
New.

Definition at line 91 of file VuoRange.c.

◆ VuoRange_getJson()

json_object* VuoRange_getJson ( const VuoRange  value)

Encodes value as a JSON object.

Definition at line 50 of file VuoRange.c.

◆ VuoRange_getSummary()

char* VuoRange_getSummary ( const VuoRange  value)

Returns a compact string representation of value.

Definition at line 74 of file VuoRange.c.

◆ VuoRange_isLessThan()

bool VuoRange_isLessThan ( const VuoRange  a,
const VuoRange  b 
)

Returns true if a < b.

Changed in Vuo 2.0.0:
New.

Definition at line 102 of file VuoRange.c.

◆ VuoRange_makeFromJson()

VuoRange VuoRange_makeFromJson ( json_object js)

Decodes the JSON object js to create a new value.

Example:
{
"minimum" : 0.0,
"maximum" : 42.0
}

Definition at line 38 of file VuoRange.c.