C# 클래스 PixelFarm.VectorMath.BezierCurve

Represents a bezier curve with as many points as you want.
파일 보기 프로젝트 열기: prepare/HTML-Renderer 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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