Class BezierCurve2
2D Bezier curve of arbitrary degree
Ported from WildMagic5 Wm5BezierCurve2
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public class BezierCurve2 : BaseCurve2, IParametricCurve2d
Constructors
BezierCurve2()
Declaration
BezierCurve2(Int32, Vector2d[], Boolean)
Declaration
public BezierCurve2(int degree, Vector2d[] ctrlPoint, bool bTakeOwnership = false)
Parameters
Properties
ArcLength
Declaration
public double ArcLength { get; }
Property Value
ControlPoints
Declaration
public Vector2d[] ControlPoints { get; }
Property Value
Degree
Declaration
public int Degree { get; }
Property Value
HasArcLength
Declaration
public bool HasArcLength { get; }
Property Value
IsClosed
Declaration
public bool IsClosed { get; }
Property Value
Declaration
public bool IsTransformable { get; }
Property Value
ParamLength
Declaration
public double ParamLength { get; }
Property Value
Methods
Clone()
Declaration
public IParametricCurve2d Clone()
Returns
GetFirstDerivative(Double)
Declaration
public override Vector2d GetFirstDerivative(double t)
Parameters
Type |
Name |
Description |
Double |
t |
|
Returns
Overrides
GetPosition(Double)
Declaration
public override Vector2d GetPosition(double t)
Parameters
Type |
Name |
Description |
Double |
t |
|
Returns
Overrides
GetSecondDerivative(Double)
Declaration
public override Vector2d GetSecondDerivative(double t)
Parameters
Type |
Name |
Description |
Double |
t |
|
Returns
Overrides
GetThirdDerivative(Double)
Declaration
public override Vector2d GetThirdDerivative(double t)
Parameters
Type |
Name |
Description |
Double |
t |
|
Returns
Overrides
Reverse()
Declaration
SampleArcLength(Double)
Declaration
public Vector2d SampleArcLength(double a)
Parameters
Type |
Name |
Description |
Double |
a |
|
Returns
SampleT(Double)
Declaration
public Vector2d SampleT(double t)
Parameters
Type |
Name |
Description |
Double |
t |
|
Returns
TangentT(Double)
Declaration
public Vector2d TangentT(double t)
Parameters
Type |
Name |
Description |
Double |
t |
|
Returns
Declaration
public void Transform(ITransform2 xform)
Parameters
Implements