C# Class Core2D.Shapes.XLineExtensions

Line shape extension methods.
ファイルを表示 Open project: Core2D/Core2D

Public Methods

Method Description
GetCurvedLineBezierControlPoints ( CurveOrientation orientation, double offset, PointAlignment p1a, PointAlignment p2a, double &p1x, double &p1y, double &p2x, double &p2y ) : void

Get curved line bezier curve control points.

GetMaxLength ( this line, double &x1, double &y1, double &x2, double &y2 ) : void

Get XLine maximum length using LineFixedLengthFlags.

GetMaxLengthAll ( this line, double &x1, double &y1, double &x2, double &y2 ) : void

Get XLine maximum length for LineFixedLengthFlags.All mode.

GetMaxLengthHorizontal ( this line, double &x1, double &x2 ) : void

Get XLine maximum length for LineFixedLengthFlags.Horizontal mode.

GetMaxLengthVertical ( this line, double &y1, double &y2 ) : void

Get XLine maximum length for LineFixedLengthFlags.Vertical mode.

Method Details

GetCurvedLineBezierControlPoints() public static method

Get curved line bezier curve control points.
public static GetCurvedLineBezierControlPoints ( CurveOrientation orientation, double offset, PointAlignment p1a, PointAlignment p2a, double &p1x, double &p1y, double &p2x, double &p2y ) : void
orientation CurveOrientation The curved line orientation.
offset double The curved line offset.
p1a PointAlignment The line start point alignment.
p2a PointAlignment The line end point alignment.
p1x double The adjusted X coordinate for curve start control point.
p1y double The adjusted Y coordinate for curve start control point.
p2x double The adjusted X coordinate for curve end control point.
p2y double The adjusted Y coordinate for curve end control point.
return void

GetMaxLength() public static method

Get XLine maximum length using LineFixedLengthFlags.
public static GetMaxLength ( this line, double &x1, double &y1, double &x2, double &y2 ) : void
line this The line shape.
x1 double The calculated X coordinate for point.
y1 double The calculated Y coordinate for point.
x2 double The calculated X coordinate for point.
y2 double The calculated Y coordinate for point.
return void

GetMaxLengthAll() public static method

Get XLine maximum length for LineFixedLengthFlags.All mode.
public static GetMaxLengthAll ( this line, double &x1, double &y1, double &x2, double &y2 ) : void
line this The line shape.
x1 double The calculated X coordinate for point.
y1 double The calculated Y coordinate for point.
x2 double The calculated X coordinate for point.
y2 double The calculated Y coordinate for point.
return void

GetMaxLengthHorizontal() public static method

Get XLine maximum length for LineFixedLengthFlags.Horizontal mode.
public static GetMaxLengthHorizontal ( this line, double &x1, double &x2 ) : void
line this The line shape.
x1 double The calculated X coordinate for point.
x2 double The calculated X coordinate for point.
return void

GetMaxLengthVertical() public static method

Get XLine maximum length for LineFixedLengthFlags.Vertical mode.
public static GetMaxLengthVertical ( this line, double &y1, double &y2 ) : void
line this The line shape.
y1 double The calculated Y coordinate for point.
y2 double The calculated Y coordinate for point.
return void