VuoImageSmooth interface. Header-only, to support generic types.
Definition in file VuoSmooth.h.
Go to the source code of this file.
Typedefs | |
typedef struct _VuoSmoothInertia * | VuoSmoothInertia |
Instance data for smoothing a value using inertia. More... | |
Functions | |
static VuoSmoothInertia | VuoSmoothInertia_make (type initialPosition) |
Creates a new smoothing object, at rest in initialPosition . More... | |
static void | VuoSmoothInertia_setPosition (VuoSmoothInertia s, type position) |
Warps to position (without smoothing) and stops. More... | |
static void | VuoSmoothInertia_setTarget (VuoSmoothInertia s, VuoReal time, type target) |
Changes the end value of the smooth movement to `target, and initiates/continues motion. More... | |
static void | VuoSmoothInertia_setDuration (VuoSmoothInertia s, VuoReal duration) |
Changes the total time between successive targets. More... | |
static bool | VuoSmoothInertia_step (VuoSmoothInertia s, VuoReal time, type *calculatedPosition) |
Calculates the next time-step. More... | |
typedef struct _VuoSmoothInertia * VuoSmoothInertia |
Instance data for smoothing a value using inertia.
|
static |
Creates a new smoothing object, at rest in initialPosition
.
Definition at line 32 of file VuoSmooth.h.
|
static |
Changes the total time between successive targets.
Definition at line 66 of file VuoSmooth.h.
|
static |
Warps to position
(without smoothing) and stops.
Definition at line 43 of file VuoSmooth.h.
|
static |
Changes the end value of the smooth movement to `target, and initiates/continues motion.
Definition at line 54 of file VuoSmooth.h.
|
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).
Definition at line 78 of file VuoSmooth.h.