C new CubicBezierCurve( p0: Vector, p1: Vector, p2: Vector, p3: Vector ) → {void}
A cubic bezier curve class
Parameters:
Name | Type | Description |
---|---|---|
p0 |
Vector | first point |
p1 |
Vector | second point |
p2 |
Vector | third point |
p3 |
Vector | fourth 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