Class DisplayArc2
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
An arc of a circle, or a whole circle; the canvas flattens it to the screen's accuracy.
public sealed class DisplayArc2 : DisplayItem2
- Inheritance
-
DisplayArc2
- Inherited Members
Constructors
Properties
- Bounds
Gets the box that holds the item.
- Cx
Gets the X of the centre.
- Cy
Gets the Y of the centre.
- IsCircle
Gets whether the arc is a whole circle.
- Radius
Gets the radius.
- Start
Gets the angle of the start in radians.
- Sweep
Gets the angle swept in radians, positive counter-clockwise.
Methods
- CoversDirection(double, double)
Gets the angle of a point seen from the centre, as the arc measures its own, within the sweep or not.
- DistanceTo(double, double)
Gets the distance from a point to the item, the shortest to any part that is drawn; the distance to the nearest edge for a fill, nought inside it.
- Flatten(double)
Gets the points of the arc as a chain whose chords stay within a tolerance of it.
- PointAt(double, out double, out double)
Gets the point of the arc at an angle.
- Touches(DisplayBox)
Gets whether any part of the item touches a box, as a crossing selection asks.