Table of Contents

Constructor GeoRay2

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

GeoRay2(GeoPoint2, GeoVector2)

Initializes a new ray.

public GeoRay2(GeoPoint2 origin, GeoVector2 direction)

Parameters

origin GeoPoint2

The origin point.

direction GeoVector2

The direction vector; it is normalized on construction.

Exceptions

ArgumentException

Thrown when the direction has zero length.

GeoRay2(GeoPoint2, GeoPoint2)

Initializes a new ray running from one point through another.

public GeoRay2(GeoPoint2 origin, GeoPoint2 through)

Parameters

origin GeoPoint2

The origin point.

through GeoPoint2

A point the ray passes through.

Exceptions

ArgumentException

Thrown when the two points coincide, or either is not a finite point.