메소드 | 설명 | |
---|---|---|
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 |