Table of Contents

Constructor GeoXLine2

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

GeoXLine2(GeoPoint2, GeoVector2)

Initializes a new infinite line.

public GeoXLine2(GeoPoint2 origin, GeoVector2 direction)

Parameters

origin GeoPoint2

A point on the line.

direction GeoVector2

The 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

origin GeoPoint2

A point on the line.

through GeoPoint2

Another 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.