Метод | Описание | |
---|---|---|
BezierSegment ( Vector2 p1, Vector2 p2, Vector2 p3 ) : System | ||
Step ( float length ) : void |
Advance the object along the curve.
|
Метод | Описание | |
---|---|---|
calculateLength ( ) : void |
Get the length of the curve. http://segfaultlabs.com/docs/quadratic-bezier-curve-length
|
|
getPoint ( Vector2 p1, Vector2 p2, float percent ) : Vector2 |
Find a point on the line piece.
|
|
updatePoint ( float percent ) : void |
Update the current point.
|
public BezierSegment ( Vector2 p1, Vector2 p2, Vector2 p3 ) : System | ||
p1 | Vector2 | |
p2 | Vector2 | |
p3 | Vector2 | |
Результат | System |