Constructor GeoRay2
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
GeoRay2(GeoPoint2, GeoVector2)
Initializes a new ray.
public GeoRay2(GeoPoint2 origin, GeoVector2 direction)
Parameters
originGeoPoint2The origin point.
directionGeoVector2The 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
Exceptions
- ArgumentException
Thrown when the two points coincide, or either is not a finite point.