Метод | Описание | |
---|---|---|
addCurve ( |
adds a curve to the bezier
|
|
getDirectionAtTime ( float t ) : |
gets the direction (normalized first derivative) of the bezier at time t
|
|
getDrawingPoints ( int totalSegments ) : Microsoft.Xna.Framework.Vector2[] |
breaks up the spline into totalSegments parts and returns all the points required to draw using lines
|
|
getPointAtTime ( float t ) : |
gets the point on the bezier at time t
|
|
getVelocityAtTime ( float t ) : |
gets the velocity (first derivative) of the bezier at time t
|
|
reset ( ) : void |
resets the bezier removing all points
|
|
setControlPoint ( int index, |
sets a control point taking into account if this is a shared point and adjusting appropriately if it is
|
Метод | Описание | |
---|---|---|
pointIndexAtTime ( float &t ) : int |
helper that gets the bezier point index at time t. t is modified in the process to be in the range of the curve segment.
|
public addCurve ( |
||
start | Start. | |
firstControlPoint | First control point. | |
secondControlPoint | Second control point. | |
end | ||
Результат | void |
public getDirectionAtTime ( float t ) : |
||
t | float | T. |
Результат |
public getDrawingPoints ( int totalSegments ) : Microsoft.Xna.Framework.Vector2[] | ||
totalSegments | int | Total segments. |
Результат | Microsoft.Xna.Framework.Vector2[] |
public getPointAtTime ( float t ) : |
||
t | float | T. |
Результат |
public getVelocityAtTime ( float t ) : |
||
t | float | T. |
Результат |
public setControlPoint ( int index, |
||
index | int | Index. |
point | Point. | |
Результат | void |