Table of Contents

Method ToGeoRay2

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

ToGeoRay2()

Gets the ray in the plane, as DxfReader reads it with PlanAs2D within the default tolerance: the ray from (0, 0, 0) along (3, 4, 0) is the GeoRay2 from (0, 0) along (0.6, 0.8). One whose origin is at a height, or whose direction rises, does not lie on the floor, and is refused.

public GeoRay2 ToGeoRay2()

Returns

GeoRay2

The ray in the plane.

Exceptions

InvalidOperationException

Thrown when the ray does not lie on the floor, has no direction within the default vector tolerance, a number of its record is not finite, or it is erased.

ToGeoRay2(Tolerance)

Gets the ray in the plane, as ToGeoRay2() does, within a tolerance, which says whether it has a direction.

public GeoRay2 ToGeoRay2(Tolerance tolerance)

Parameters

tolerance Tolerance

The tolerance, as Tolerance reads it.

Returns

GeoRay2

The ray in the plane.

Exceptions

InvalidOperationException

Thrown when the ray does not lie on the floor, has no direction within the vector tolerance, a number of its record is not finite, or it is erased.