Exemple #1
0
 /// <summary>
 /// Create a new arc.
 /// </summary>
 /// <param name="center">The center of the arc.</param>
 /// <param name="radius">The radius of the arc.</param>
 /// <param name="startAngle">Arc start angle in degrees.</param>
 /// <param name="endAngle">Arc end angle in degrees.</param>
 public DwgArc(DwgPoint center, double radius, double startAngle, double endAngle)
     : this()
 {
     Center     = center;
     Radius     = radius;
     StartAngle = startAngle;
     EndAngle   = endAngle;
 }
Exemple #2
0
 /// <summary>
 /// Create a new ellipse.
 /// </summary>
 /// <param name="center">The center of the ellipse.</param>
 /// <param name="majorAxis">The semi-major axis of the ellipse.</param>
 /// <param name="minorAxisRatio">The ratio of the length of the minor axis to the major axis.</param>
 /// <param name="startAngle">The start angle of the ellipse in radians.</param>
 /// <param name="endAngle">The end angle of the ellipse in radians.</param>
 public DwgEllipse(DwgPoint center, DwgVector majorAxis, double minorAxisRatio, double startAngle, double endAngle)
     : this()
 {
     Center         = center;
     MajorAxis      = majorAxis;
     MinorAxisRatio = minorAxisRatio;
     StartAngle     = startAngle;
     EndAngle       = endAngle;
 }
Exemple #3
0
 /// <summary>
 /// Create a new circle.
 /// </summary>
 /// <param name="center">The center of the circle.</param>
 /// <param name="radius">The radius of the circle.</param>
 public DwgCircle(DwgPoint center, double radius)
     : this()
 {
     Center = center;
     Radius = radius;
 }
Exemple #4
0
 public DwgLine(DwgPoint p1, DwgPoint p2)
     : this()
 {
     P1 = p1;
     P2 = p2;
 }