Interpolations

Interpolations contains spline and Bézier functions internally used by concrete curve classes.

Methods

.CatmullRom(t : Float, p0 : Float, p1 : Float, p2 : Float, p3 : Float) → Float

t — interpolation weight.
p0, p1, p2, p3 — the points defining the spline curve.

Used internally by SplineCurve.

.QuadraticBezier(t : Float, p0 : Float, p1 : Float, p2 : Float) → Float

t — interpolation weight.
p0, p1, p2 — the starting, control and end points defining the curve.

Used internally by QuadraticBezierCurve3 and QuadraticBezierCurve.

.CubicBezier(t : Float, p0 : Float, p1 : Float, p2 : Float, p3 : Float) → Float

t — interpolation weight.
p0, p1, p2, p3 — the starting, control(twice) and end points defining the curve.

Used internally by CubicBezierCurve3 and CubicBezierCurve.

Source

For more info on how to obtain the source code of this module see this page.