Constructor GeoEdge2
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
GeoEdge2(GeoPoint2, GeoPoint2)
Initializes a straight edge between two points.
public GeoEdge2(GeoPoint2 startPoint, GeoPoint2 endPoint)
Parameters
GeoEdge2(GeoPoint2, GeoPoint2, double)
Initializes an edge between two points, straight or bulged into an arc.
public GeoEdge2(GeoPoint2 startPoint, GeoPoint2 endPoint, double bulge)
Parameters
startPointGeoPoint2Where the edge starts.
endPointGeoPoint2Where the edge ends.
bulgedoubleThe bulge: zero for a straight segment, otherwise the tangent of a quarter of the angle the arc sweeps.
Exceptions
- ArgumentOutOfRangeException
Thrown when the bulge is not a number.
GeoEdge2(GeoArc2)
Initializes the edge that draws an arc.
public GeoEdge2(GeoArc2 arc)
Parameters
arcGeoArc2The arc to hold as an edge.
Remarks
An arc sweeping a whole turn has its two ends in the same place and cannot be told from a point by its ends alone, so it is refused: a chain says a full circle with a circle, not with an edge.
Exceptions
- ArgumentOutOfRangeException
Thrown when the arc sweeps a whole turn.