[quad
, cubic
, quart
, quint
, sine
, circ
, expo
, elastic
, back
, bounce
] x [in
, out
, inout
]
All functions have the signature fn(f32) -> f32
and expect input ranging from 0.0
to 1.0
. Output is generally in the 0.0
to 1.0
range (except for elastic
and back
, which return values slightly outside). 0.0
always maps to 0.0
, and 1.0
always maps to 1.0
.
Use 'em to lerp or something:
rust
let current_pos = lerp(ezing::cubic_inout(t), start, end);