quad

Quadilaterally interpolates between p0 and p2, with p1 as a control point.

@safe pure
T
quad
(
T
)
(
T p0
,
T p1
,
T p2
,
float t
)

Parameters

p0 T

The first value to interpolate

p1 T

The control value for the curve.

p2 T

The second value to interpolate

t float

The interpolation step from 0..1

Return Value

Type: T

The interpolated value between p0 and p2

Meta