C new BezierCurve( p0: Vector, p1: Vector, p2: Vector ) → {void}
A three point bezier curve class
Parameters:
Name | Type | Description |
---|---|---|
p0 |
Vector | first point |
p1 |
Vector | second point |
p2 |
Vector | third point |
Methods
-
S M draw( )
-
The function that draws the bezier curve on the canvas in every frame
-
S M getPoint( t: number ) → { Vector }
-
Parameters:
Name Type Description t
number the time value between 0 and 1
the point at the time value