|
The Open Toolkit library
1.0
|
Represents a quadric bezier curve with two anchor and one control point. More...
Public Member Functions | |
| BezierCurveQuadric (Vector2 startAnchor, Vector2 endAnchor, Vector2 controlPoint) | |
| Constructs a new BezierCurveQuadric. More... | |
| BezierCurveQuadric (float parallel, Vector2 startAnchor, Vector2 endAnchor, Vector2 controlPoint) | |
| Constructs a new BezierCurveQuadric. 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... | |
Public Attributes | |
| Vector2 | StartAnchor |
| Start anchor point. More... | |
| Vector2 | EndAnchor |
| End anchor point. More... | |
| Vector2 | ControlPoint |
| Control point, controls the direction of both endings of the curve. More... | |
| float | Parallel |
| The parallel value. More... | |
Represents a quadric bezier curve with two anchor and one control point.
| OpenTK.BezierCurveQuadric.BezierCurveQuadric | ( | Vector2 | startAnchor, |
| Vector2 | endAnchor, | ||
| Vector2 | controlPoint | ||
| ) |
Constructs a new BezierCurveQuadric.
| startAnchor | The start anchor. |
| endAnchor | The end anchor. |
| controlPoint | The control point. |
| OpenTK.BezierCurveQuadric.BezierCurveQuadric | ( | float | parallel, |
| Vector2 | startAnchor, | ||
| Vector2 | endAnchor, | ||
| Vector2 | controlPoint | ||
| ) |
Constructs a new BezierCurveQuadric.
| parallel | The parallel value. |
| startAnchor | The start anchor. |
| endAnchor | The end anchor. |
| controlPoint | The control point. |
| float OpenTK.BezierCurveQuadric.CalculateLength | ( | float | precision | ) |
Calculates the length of this bezier curve.
| precision | The precision. |
The precision gets better when the precision value gets smaller.
| Vector2 OpenTK.BezierCurveQuadric.CalculatePoint | ( | float | t | ) |
Calculates the point with the specified t.
| t | The t value, between 0.0f and 1.0f. |
| Vector2 OpenTK.BezierCurveQuadric.ControlPoint |
Control point, controls the direction of both endings of the curve.
| Vector2 OpenTK.BezierCurveQuadric.EndAnchor |
End anchor point.
| float OpenTK.BezierCurveQuadric.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.f to the orignal curve at any point.
| Vector2 OpenTK.BezierCurveQuadric.StartAnchor |
Start anchor point.