Table of Contents

Method ToGeoRay3

Namespace
GeometryHelper.CadConvert
Assembly
GeometryHelper.CadConvert.dll

ToGeoRay3(Ray)

Converts an AutoCAD Ray to a GeometryHelper ray in space.

public static GeoRay3 ToGeoRay3(this Ray ray)

Parameters

ray Ray

The AutoCAD Ray to convert.

Returns

GeoRay3

The converted GeoRay3, from AutoCAD's base point along its unit direction.

Remarks

A Ray from (100, 200, 0) along Y is the ray from (100, 200, 0) along (0, 1, 0).

Exceptions

ArgumentNullException

Thrown when ray is null.

ArgumentException

Thrown when the Ray has a unit direction of no length.

ToGeoRay3(IEnumerable<Ray>)

Converts a sequence of AutoCAD Rays to a list of GeometryHelper rays in space.

public static List<GeoRay3> ToGeoRay3(this IEnumerable<Ray> rays)

Parameters

rays IEnumerable<Ray>

The sequence of AutoCAD Rays to convert.

Returns

List<GeoRay3>

A list of converted GeoRay3.