Bezier Module

Bezier interpolates data between 2 points using a number of control points, which determine the degree of the interpolated curve.

Functions and values

Function or value Description

interpolate values

Full Usage: interpolate values

Parameters:
    values : vector[] - an array containg the starting point, the control points, and the end point to use for interpolation

Returns: float -> vector The generated interpolation function

This implements Bezier interpolation using De Casteljau's algorithm.

values : vector[]

an array containg the starting point, the control points, and the end point to use for interpolation

Returns: float -> vector

The generated interpolation function

lerp p1 p2 t

Full Usage: lerp p1 p2 t

Parameters:
Returns: Vector<float>
Modifiers: inline
p1 : vector
p2 : vector
t : float
Returns: Vector<float>