C# Class OpenTK.BezierCurve

Show file Open project: prepare/HTML-Renderer Class Usage Examples

Public Properties

Property Type Description
Parallel float

Public Methods

Method Description
BezierCurve ( ) : System

Constructs a new BezierCurve.

BezierCurve ( IEnumerable points ) : System

Constructs a new BezierCurve.

BezierCurve ( float parallel ) : System

Constructs a new BezierCurve.

BezierCurve ( float parallel, IEnumerable points ) : System

Constructs a new BezierCurve.

CalculateLength ( IList points, float precision ) : float

Calculates the length of the specified bezier curve.

CalculateLength ( IList points, float precision, float parallel ) : float

Calculates the length of the specified bezier curve.

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.

CalculateLength ( float precision ) : float

Calculates the length of this bezier curve.

The precision gets better as the precision value gets smaller.

CalculatePoint ( IList points, float t ) : System.Vector2

Calculates the point on the given bezier curve with the specified t parameter.

CalculatePoint ( IList points, float t, float parallel ) : System.Vector2

Calculates the point on the given bezier curve with the specified t parameter.

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.

CalculatePoint ( float t ) : System.Vector2

Calculates the point with the specified t.

Private Methods

Method Description
CalculatePointOfDerivative ( IList points, float t ) : System.Vector2

Calculates the point with the specified t of the derivative of the given bezier function.

Method Details

BezierCurve() public method

Constructs a new BezierCurve.
public BezierCurve ( ) : System
return System

BezierCurve() public method

Constructs a new BezierCurve.
public BezierCurve ( IEnumerable points ) : System
points IEnumerable The points.
return System

BezierCurve() public method

Constructs a new BezierCurve.
public BezierCurve ( float parallel ) : System
parallel float The parallel value.
return System

BezierCurve() public method

Constructs a new BezierCurve.
public BezierCurve ( float parallel, IEnumerable points ) : System
parallel float The parallel value.
points IEnumerable The points.
return System

CalculateLength() public static method

Calculates the length of the specified bezier curve.
public static CalculateLength ( IList points, float precision ) : float
points IList The points.
precision float The precision value.
return float

CalculateLength() public static method

Calculates the length of the specified bezier curve.

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.

public static CalculateLength ( IList points, float precision, float parallel ) : float
points IList The points.
precision float The precision value.
parallel float The parallel value.
return float

CalculateLength() public method

Calculates the length of this bezier curve.
The precision gets better as the precision value gets smaller.
public CalculateLength ( float precision ) : float
precision float The precision.
return float

CalculatePoint() public static method

Calculates the point on the given bezier curve with the specified t parameter.
public static CalculatePoint ( IList points, float t ) : System.Vector2
points IList The points.
t float The t parameter, a value between 0.0f and 1.0f.
return System.Vector2

CalculatePoint() public static method

Calculates the point on the given bezier curve with the specified t parameter.
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.
public static CalculatePoint ( IList points, float t, float parallel ) : System.Vector2
points IList The points.
t float The t parameter, a value between 0.0f and 1.0f.
parallel float The parallel value.
return System.Vector2

CalculatePoint() public method

Calculates the point with the specified t.
public CalculatePoint ( float t ) : System.Vector2
t float The t value, between 0.0f and 1.0f.
return System.Vector2

Property Details

Parallel public property

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.
public float Parallel
return float