|
The Open Toolkit library
1.0
|
Represents a bezier curve with as many points as you want. More...
Public Member Functions | |
| BezierCurve (IEnumerable< Vector2 > points) | |
| Constructs a new BezierCurve. More... | |
| BezierCurve (params Vector2[] points) | |
| Constructs a new BezierCurve. More... | |
| BezierCurve (float parallel, params Vector2[] points) | |
| Constructs a new BezierCurve. More... | |
| BezierCurve (float parallel, IEnumerable< Vector2 > points) | |
| Constructs a new BezierCurve. More... | |
| Vector2 | CalculatePoint (float t) |
| Calculates the point with the specified t. More... | |
| float | CalculateLength (float precision) |
| Calculates the length of this bezier curve. More... | |
Static Public Member Functions | |
| static float | CalculateLength (IList< Vector2 > points, float precision) |
| Calculates the length of the specified bezier curve. More... | |
| static float | CalculateLength (IList< Vector2 > points, float precision, float parallel) |
| Calculates the length of the specified bezier curve. More... | |
| static Vector2 | CalculatePoint (IList< Vector2 > points, float t) |
| Calculates the point on the given bezier curve with the specified t parameter. More... | |
| static Vector2 | CalculatePoint (IList< Vector2 > points, float t, float parallel) |
| Calculates the point on the given bezier curve with the specified t parameter. More... | |
Public Attributes | |
| float | Parallel |
| The parallel value. More... | |
Properties | |
| IList< Vector2 > | Points [get] |
| Gets the points of this curve. More... | |
Represents a bezier curve with as many points as you want.
| OpenTK.BezierCurve.BezierCurve | ( | IEnumerable< Vector2 > | points | ) |
Constructs a new BezierCurve.
| points | The points. |
| OpenTK.BezierCurve.BezierCurve | ( | params Vector2[] | points | ) |
Constructs a new BezierCurve.
| points | The points. |
| OpenTK.BezierCurve.BezierCurve | ( | float | parallel, |
| params Vector2[] | points | ||
| ) |
Constructs a new BezierCurve.
| parallel | The parallel value. |
| points | The points. |
| OpenTK.BezierCurve.BezierCurve | ( | float | parallel, |
| IEnumerable< Vector2 > | points | ||
| ) |
Constructs a new BezierCurve.
| parallel | The parallel value. |
| points | The points. |
| float OpenTK.BezierCurve.CalculateLength | ( | float | precision | ) |
Calculates the length of this bezier curve.
| precision | The precision. |
The precision gets better as the precision value gets smaller.
|
static |
Calculates the length of the specified bezier curve.
| points | The points. |
| precision | The precision value. |
|
static |
Calculates the length of the specified bezier curve.
| points | The points. |
| precision | The precision value. |
| parallel | The parallel value. |
The precision gets better as the precision value gets smaller.
The parallel parameter defines whether the curve should be calculated as a parallel curve to the original bezier curve. A value of 0.0f represents the original curve, 5.0f represents a curve that has always a distance of 5.0f to the orignal curve.
| Vector2 OpenTK.BezierCurve.CalculatePoint | ( | float | t | ) |
Calculates the point with the specified t.
| t | The t value, between 0.0f and 1.0f. |
Calculates the point on the given bezier curve with the specified t parameter.
| points | The points. |
| t | The t parameter, a value between 0.0f and 1.0f. |
|
static |
Calculates the point on the given bezier curve with the specified t parameter.
| points | The points. |
| t | The t parameter, a value between 0.0f and 1.0f. |
| parallel | The parallel value. |
The parallel parameter defines whether the curve should be calculated as a parallel curve to the original bezier curve. A value of 0.0f represents the original curve, 5.0f represents a curve that has always a distance of 5.0f to the orignal curve.
| float OpenTK.BezierCurve.Parallel |
The parallel value.
This value defines whether the curve should be calculated as a parallel curve to the original bezier curve. A value of 0.0f represents the original curve, 5.0f i.e. stands for a curve that has always a distance of 5.0f to the orignal curve at any point.
|
get |
Gets the points of this curve.
The first point and the last points represent the anchor points.