C# 클래스 Core2D.Shapes.XLineExtensions

Line shape extension methods.
파일 보기 프로젝트 열기: Core2D/Core2D

공개 메소드들

메소드 설명
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.

메소드 상세

GetCurvedLineBezierControlPoints() 공개 정적인 메소드

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.
리턴 void

GetMaxLength() 공개 정적인 메소드

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.
리턴 void

GetMaxLengthAll() 공개 정적인 메소드

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.
리턴 void

GetMaxLengthHorizontal() 공개 정적인 메소드

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.
리턴 void

GetMaxLengthVertical() 공개 정적인 메소드

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.
리턴 void