Constructor
new CubicBezierCurve( v0 : Vector2, v1 : Vector2, v2 : Vector2, v3 : Vector2 )
Constructs a new Cubic Bezier curve.
| v0 |
The start point. |
| v1 |
The first control point. |
| v2 |
The second control point. |
| v3 |
The end point. |
Properties
.isCubicBezierCurve : boolean (readonly)
This flag can be used for type testing.
Default is true.
Methods
.getPoint( t : number, optionalTarget : Vector2 ) : Vector2
Returns a point on the curve.
| t |
A interpolation factor representing a position on the curve. Must be in the range |
| optionalTarget |
The optional target vector the result is written to. |
- Overrides: Curve#getPoint
- Returns: The position on the curve.