A floating-point 2-dimensional Cartesian spatial location.
|
VuoPoint2d | VuoPoint2d_makeFromJson (json_object *js) |
|
Decodes the JSON object js to create a new value. More...
|
|
json_object * | VuoPoint2d_getJson (const VuoPoint2d value) |
| Encodes value as a JSON object. More...
|
|
char * | VuoPoint2d_getSummary (const VuoPoint2d value) |
| Returns a compact string representation of value (comma-separated coordinates). More...
|
|
bool | VuoPoint2d_areEqual (const VuoPoint2d value1, const VuoPoint2d value2) |
| Returns true if the two points are equal (within tolerance). More...
|
|
VuoPoint2d | VuoPoint2d_random (const VuoPoint2d minimum, const VuoPoint2d maximum) |
| Returns a pseudorandom value where each component is between minimum and maximum . More...
|
|
VuoPoint2d | VuoPoint2d_randomWithState (unsigned short state[3], const VuoPoint2d minimum, const VuoPoint2d maximum) |
| Returns a pseudorandom value where each component is between minimum and maximum . More...
|
|
static VuoPoint2d | VuoPoint2d_make (float x, float y) __attribute__((const)) |
| Returns a point with the specified coordinates. More...
|
|
static VuoRectangle | VuoRectangle_make (float centerX, float centerY, float width, float height) __attribute__((const)) |
| Returns a rectangle with the specified coordinates. More...
|
|
static bool | VuoRectangle_areEqual (const VuoRectangle a, const VuoRectangle b) |
| Returns true if the rectangles have the same position and size. More...
|
|
static VuoRectangle | VuoRectangle_makeTopLeft (float leftX, float topY, float width, float height) __attribute__((const)) |
| Returns a rectangle with the specified coordinates. More...
|
|
static VuoPoint2d | VuoPoint2d_add (VuoPoint2d a, VuoPoint2d b) __attribute__((const)) |
| a + b . More...
|
|
static VuoPoint2d | VuoPoint2d_subtract (VuoPoint2d a, VuoPoint2d b) __attribute__((const)) |
| a - b . More...
|
|
static float | VuoPoint2d_squaredMagnitude (VuoPoint2d a) __attribute__((const)) |
| Returns the squared magnitude of the vector. More...
|
|
static VuoPoint2d | VuoPoint2d_divide (VuoPoint2d a, VuoPoint2d b) __attribute__((const)) |
| Component-wise division. More...
|
|
static VuoPoint2d | VuoPoint2d_makeNonzero (VuoPoint2d a) __attribute__((const)) |
| If any component of the value is zero or very close to zero, moves it further from zero (either 0.000001 or -0.000001). More...
|
|
static float | VuoPoint2d_magnitude (VuoPoint2d a) __attribute__((const)) |
| Returns the magnitude of the vector. More...
|
|
static VuoPoint2d | VuoPoint2d_normalize (VuoPoint2d a) __attribute__((const)) |
| Returns the normalization of a . More...
|
|
static VuoPoint2d | VuoPoint2d_multiply (VuoPoint2d a, float b) __attribute__((const)) |
| a * b More...
|
|
static float | VuoPoint2d_dotProduct (VuoPoint2d u, VuoPoint2d v) __attribute__((const)) |
| Returns the dot product of u , v . More...
|
|
static float | VuoPoint2d_distance (VuoPoint2d a, VuoPoint2d b) __attribute__((const)) |
| Distance between a and b . More...
|
|
static VuoPoint2d | VuoPoint2d_lerp (VuoPoint2d a, VuoPoint2d b, float t) __attribute__((const)) |
| Returns a linearly interpolated value between a and b using time t . More...
|
|
static VuoPoint2d | VuoPoint2d_scale (VuoPoint2d a, VuoPoint2d b) __attribute__((const)) |
| Returns component-wise multiplication of two VuoPoint2d vectors. More...
|
|
VuoRectangle | VuoPoint2d_rectangleIntersection (VuoRectangle rectangleA, VuoRectangle rectangleB) |
| Returns the intersecting area of rectangleA and rectangleB . More...
|
|
VuoRectangle | VuoPoint2d_rectangleUnion (VuoRectangle rectangleA, VuoRectangle rectangleB) |
| Returns the union area of rectangleA and rectangleB . More...
|
|
static VuoPoint2d | VuoPoint2d_spring (VuoReal timeSinceDrop, VuoPoint2d dropPosition, VuoPoint2d restingPosition, VuoReal period, VuoReal damping) |
| Calculates a position along the path of an oscillating spring. More...
|
|
static VuoPoint2d | VuoPoint2d_clamp (VuoPoint2d point, VuoReal limitA, VuoReal limitB) |
| Limits point to values between limitA and limitB , inclusive. More...
|
|
static VuoPoint2d | VuoPoint2d_clampn (VuoPoint2d point, VuoPoint2d limitA, VuoPoint2d limitB) |
| Limits point to values between limitA and limitB , inclusive. More...
|
|
static VuoPoint2d | VuoPoint2d_bezier3 (VuoPoint2d p0, VuoPoint2d p1, VuoPoint2d p2, VuoPoint2d p3, VuoReal time) |
| Calculates a position along a cubic bezier curve. More...
|
|
static VuoPoint2d | VuoPoint2d_snap (VuoPoint2d a, VuoPoint2d center, VuoPoint2d snap) |
| Snap value a to the nearest increment of value snap. More...
|
|
json_object * | VuoPoint3d_getJson (const VuoPoint3d value) |
| Encodes value as a JSON object. More...
|
|
json_object * | VuoPoint4d_getJson (const VuoPoint4d value) |
| Encodes value as a JSON object. More...
|
|
VuoPoint2d | VuoPoint2d_makeFromString (const char *str) |
| Automatically generated function. More...
|
|
char * | VuoPoint2d_getString (const VuoPoint2d value) |
| Automatically generated function. More...
|
|
void | VuoPoint2d_retain (VuoPoint2d value) |
| Automatically generated function. More...
|
|
void | VuoPoint2d_release (VuoPoint2d value) |
| Automatically generated function. More...
|
|