Vuo
0.9.1
|
VuoImageSmooth interface.
Header-only, to support generic types.
Classes | |
struct | _VuoSmoothInertia |
Instance data for smoothing a value using inertia. More... | |
Typedefs | |
typedef struct _VuoSmoothInertia * | VuoSmoothInertia |
Instance data for smoothing a value using inertia. | |
Functions | |
static VuoSmoothInertia | VuoSmoothInertia_make (type initialPosition) |
Creates a new smoothing object, at rest in initialPosition . | |
static void | VuoSmoothInertia_setPosition (VuoSmoothInertia s, type position) |
Warps to position (without smoothing) and stops. | |
static void | VuoSmoothInertia_setTarget (VuoSmoothInertia s, VuoReal time, type target) |
Changes the end value of the smooth movement to `target, and initiates/continues motion. | |
static void | VuoSmoothInertia_setDuration (VuoSmoothInertia s, VuoReal duration) |
Changes the total time between successive targets. | |
static bool | VuoSmoothInertia_step (VuoSmoothInertia s, VuoReal time, type *calculatedPosition) |
Calculates the next time-step. | |
struct _VuoSmoothInertia |
typedef struct _VuoSmoothInertia * VuoSmoothInertia |
Instance data for smoothing a value using inertia.
|
static |
Creates a new smoothing object, at rest in initialPosition
.
|
static |
Changes the total time between successive targets.
|
static |
Warps to position
(without smoothing) and stops.
|
static |
Changes the end value of the smooth movement to `target, and initiates/continues motion.
|
static |
Calculates the next time-step.
time
should be monotonically-increasing (not a delta).
Returns true if motion is in progress (and thus an event should be fired).