C# 클래스 OpenTK.BezierCurveQuadric

파일 보기 프로젝트 열기: prepare/HTML-Renderer 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ControlPoint System.Vector2
EndAnchor System.Vector2
Parallel float
StartAnchor System.Vector2

공개 메소드들

메소드 설명
BezierCurveQuadric ( System.Vector2 startAnchor, System.Vector2 endAnchor, System.Vector2 controlPoint ) : System

Constructs a new BezierCurveQuadric.

BezierCurveQuadric ( float parallel, System.Vector2 startAnchor, System.Vector2 endAnchor, System.Vector2 controlPoint ) : System

Constructs a new BezierCurveQuadric.

CalculateLength ( float precision ) : float

Calculates the length of this bezier curve.

The precision gets better when the precision value gets smaller.

CalculatePoint ( float t ) : System.Vector2

Calculates the point with the specified t.

비공개 메소드들

메소드 설명
CalculatePointOfDerivative ( float t ) : System.Vector2

Calculates the point with the specified t of the derivative of this function.

메소드 상세

BezierCurveQuadric() 공개 메소드

Constructs a new BezierCurveQuadric.
public BezierCurveQuadric ( System.Vector2 startAnchor, System.Vector2 endAnchor, System.Vector2 controlPoint ) : System
startAnchor System.Vector2 The start anchor.
endAnchor System.Vector2 The end anchor.
controlPoint System.Vector2 The control point.
리턴 System

BezierCurveQuadric() 공개 메소드

Constructs a new BezierCurveQuadric.
public BezierCurveQuadric ( float parallel, System.Vector2 startAnchor, System.Vector2 endAnchor, System.Vector2 controlPoint ) : System
parallel float The parallel value.
startAnchor System.Vector2 The start anchor.
endAnchor System.Vector2 The end anchor.
controlPoint System.Vector2 The control point.
리턴 System

CalculateLength() 공개 메소드

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

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

프로퍼티 상세

ControlPoint 공개적으로 프로퍼티

Control point, controls the direction of both endings of the curve.
public Vector2,System ControlPoint
리턴 System.Vector2

EndAnchor 공개적으로 프로퍼티

End anchor point.
public Vector2,System EndAnchor
리턴 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.f to the orignal curve at any point.
public float Parallel
리턴 float

StartAnchor 공개적으로 프로퍼티

Start anchor point.
public Vector2,System StartAnchor
리턴 System.Vector2