C# Class CrossUI.Geometry.BezierGeometry

Datei anzeigen Open project: pragmatrix/CrossUI

Public Methods

Method Description
AtT ( this b, double t ) : Point
bezier ( Point V, int degree, double t, Point Left, Point Right ) : Point
nearestPointOnCubicBezier ( Point V, Point P ) : Point
nearestTOfPoint ( this b, Point p ) : double
nearestTOnCubicBezier ( Point V, Point P ) : double

Private Methods

Method Description
ComputeXIntercept ( Point V, int degree ) : double
ControlPolygonFlatEnough ( Point V, int degree ) : bool
ConvertToBezierForm ( Point P, Point V ) : CrossUI.Drawing.Point[]
CrossingCount ( Point V, int degree ) : int
FindRoots ( Point w, int degree, double t, int depth ) : int
SGN ( double v ) : int
V2Dot ( Point a, Point b ) : double
V2ScaleII ( Point v, double s ) : Point
V2SquaredLength ( Point v ) : double
V2Sub ( Point a, Point b, Point &c ) : Point

Method Details

AtT() public static method

public static AtT ( this b, double t ) : Point
b this
t double
return CrossUI.Drawing.Point

bezier() public static method

public static bezier ( Point V, int degree, double t, Point Left, Point Right ) : Point
V CrossUI.Drawing.Point
degree int
t double
Left CrossUI.Drawing.Point
Right CrossUI.Drawing.Point
return CrossUI.Drawing.Point

nearestPointOnCubicBezier() public static method

public static nearestPointOnCubicBezier ( Point V, Point P ) : Point
V CrossUI.Drawing.Point
P CrossUI.Drawing.Point
return CrossUI.Drawing.Point

nearestTOfPoint() public static method

public static nearestTOfPoint ( this b, Point p ) : double
b this
p CrossUI.Drawing.Point
return double

nearestTOnCubicBezier() public static method

public static nearestTOnCubicBezier ( Point V, Point P ) : double
V CrossUI.Drawing.Point
P CrossUI.Drawing.Point
return double