Vuo  2.3.2
Typedefs | Functions
VuoSmooth.h File Reference

Description

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 Documentation

◆ VuoSmoothInertia

typedef struct _VuoSmoothInertia * VuoSmoothInertia

Instance data for smoothing a value using inertia.

Function Documentation

◆ VuoSmoothInertia_make()

static VuoSmoothInertia VuoSmoothInertia_make ( type  initialPosition)
static

Creates a new smoothing object, at rest in initialPosition.

Definition at line 32 of file VuoSmooth.h.

◆ VuoSmoothInertia_setDuration()

static void VuoSmoothInertia_setDuration ( VuoSmoothInertia  s,
VuoReal  duration 
)
static

Changes the total time between successive targets.

Definition at line 66 of file VuoSmooth.h.

◆ VuoSmoothInertia_setPosition()

static void VuoSmoothInertia_setPosition ( VuoSmoothInertia  s,
type  position 
)
static

Warps to position (without smoothing) and stops.

Definition at line 43 of file VuoSmooth.h.

◆ VuoSmoothInertia_setTarget()

static void VuoSmoothInertia_setTarget ( VuoSmoothInertia  s,
VuoReal  time,
type  target 
)
static

Changes the end value of the smooth movement to `target, and initiates/continues motion.

Definition at line 54 of file VuoSmooth.h.

◆ VuoSmoothInertia_step()

static bool VuoSmoothInertia_step ( VuoSmoothInertia  s,
VuoReal  time,
type *  calculatedPosition 
)
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.