Méthode | Description | |
---|---|---|
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
|
Méthode | Description | |
---|---|---|
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 | ||
Résultat | void |
public getDirectionAtTime ( float t ) : |
||
t | float | T. |
Résultat |
public getDrawingPoints ( int totalSegments ) : Microsoft.Xna.Framework.Vector2[] | ||
totalSegments | int | Total segments. |
Résultat | Microsoft.Xna.Framework.Vector2[] |
public getPointAtTime ( float t ) : |
||
t | float | T. |
Résultat |
public getVelocityAtTime ( float t ) : |
||
t | float | T. |
Résultat |
public setControlPoint ( int index, |
||
index | int | Index. |
point | Point. | |
Résultat | void |