C# Класс OpenTK.BezierCurve

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Parallel float

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
CalculatePointOfDerivative ( IList points, float t ) : System.Vector2

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

Описание методов

BezierCurve() публичный Метод

Constructs a new BezierCurve.
public BezierCurve ( ) : System
Результат System

BezierCurve() публичный Метод

Constructs a new BezierCurve.
public BezierCurve ( IEnumerable points ) : System
points IEnumerable The points.
Результат System

BezierCurve() публичный Метод

Constructs a new BezierCurve.
public BezierCurve ( float parallel ) : System
parallel float The parallel value.
Результат System

BezierCurve() публичный Метод

Constructs a new BezierCurve.
public BezierCurve ( float parallel, IEnumerable points ) : System
parallel float The parallel value.
points IEnumerable The points.
Результат System

CalculateLength() публичный статический Метод

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.
Результат float

CalculateLength() публичный статический Метод

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.
Результат float

CalculateLength() публичный Метод

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.
Результат float

CalculatePoint() публичный статический Метод

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.
Результат System.Vector2

CalculatePoint() публичный статический Метод

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.
Результат System.Vector2

CalculatePoint() публичный Метод

Calculates the point with the specified t.
public CalculatePoint ( float t ) : System.Vector2
t float The t value, between 0.0f and 1.0f.
Результат System.Vector2

Описание свойств

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.
public float Parallel
Результат float