Constructors
Properties
CircleBounds
#public RectangleF CircleBounds { get; }
Gets the frame of the arc (ie. the bounding box of the circle underlying the arc).
IsEmpty
#Gets whether this arc is empty, ie. has a radius of exactly zero, or a sweep angle of exactly zero.
Length
#Gets the length of this arc. Arcs with negative radii will have negative circumferences, but negative sweep angles result in positive lengths.
Methods
ClosestPoint
#Gets the point on the arc edge closest to a locus point.
Parameters:
| point (PointF) | Locus point. |
Returns: Point on arc edge.
CompareTo
#Compare this circle to another.
Parameters:
| other (ArcF) | Circle to compare to. |
Returns: Sort order.
CreateTangent
#Create an arc using start, end and directional points.
Parameters:
| start (PointF) | Start of arc. |
| end (PointF) | End of arc. |
| direction (PointF) | Point along start tangent direction. |
Returns: Arc, or, if no arc is possible, None.
CreateTangent
#Create an arc using start and end points, and a tangent direction.
Parameters:
| start (PointF) | Start of arc. |
| end (PointF) | End of arc. |
| tangent (SizeF) | Tangent direction at start. |
Returns: Arc, or, if no arc is possible, None.
CreateThreePoint
#Create an arc through three points.
Parameters:
| start (PointF) | Start of arc. |
| interior (PointF) | Point on arc interior. |
| end (PointF) | End of arc. |
Returns: Arc.
DirectionAt
#Gets the tangent direction on the arc at the given angle. This is similar to the TangentAt(float) property but takes the sweep direction in account.
Parameters:
| angle (float) | Angle in degrees, clockwise starting from positive x. |
Returns: Direction on arc.
Distance
#Gets the distance from a point to the boundary of the circle.
Parameters:
| point (PointF) | Point to measure. |
Returns: Distance from circle edge to point.
Divide
#Divide the arc into segments.
Parameters:
| deviation (double) | Maximum deviation between arc and polygon. |
Returns: Array of points.
Equals
#Compare one circle to another.
Parameters:
| other (ArcF) | Circle to compare to. |
Returns: True if circles are equals.
Offset
#Modify this arc by offsetting it.
Parameters:
| amount (float) | Amount to offset. |
Returns: Offsetted arc.
PointAt
#Gets the point on the arc at the given angle. Angles are evaluated on the circle underlying the arc.
Parameters:
| angle (float) | Angle in degrees, clockwise starting from positive x. |
Returns: Point on arc.
TangentAt
#Gets the tangent on the arc at the given angle. Angles are evaluated on the circle underlying the arc.
Parameters:
| angle (float) | Angle in degrees, clockwise starting from positive x. |
Returns: Tangent on arc.
ToString
#Gets a string representation of this arc.
Returns: Description.
Overrides: ValueType.ToString