Module webrender::spring [] [src]

Reexports

use api::LayerPoint;

Structs

Spring

Constants

DAMPING

The default damping factor.

EPSILON

Some arbitrarily small positive number used as threshold value.

STIFFNESS

The default stiffness factor.

Functions

is_resting

Given numbers, calcluate if a spring is at rest.

next

Given numbers, calculate the next position for a spring.