Constructor GeoXLine2
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
GeoXLine2(GeoPoint2, GeoVector2)
Initializes a new infinite line.
public GeoXLine2(GeoPoint2 origin, GeoVector2 direction)
Parameters
originGeoPoint2A point on the line.
directionGeoVector2The direction vector; it is normalized on construction.
Exceptions
- ArgumentException
Thrown when the direction has zero length.
GeoXLine2(GeoPoint2, GeoPoint2)
Initializes a new infinite line through two points.
public GeoXLine2(GeoPoint2 origin, GeoPoint2 through)
Parameters
originGeoPoint2A point on the line.
throughGeoPoint2Another point on the line; the direction runs from the first to this one.
Exceptions
- ArgumentException
Thrown when the two points coincide, or either is not a finite point.