Table of Contents

Method ProjectToRay2

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

ProjectToRay2(GeoCoordinateSystem3, GeoRay3)

Lays a ray out in a frame: its origin as a point, dropping its distance from the plane, and its direction as a vector, dropping the part square to the plane and normalized again.

public static GeoRay2 ProjectToRay2(GeoCoordinateSystem3 frame, GeoRay3 ray)

Parameters

frame GeoCoordinateSystem3

The frame to lay it out in.

ray GeoRay3

The ray.

Returns

GeoRay2

The ray in the plane of the frame.

Remarks

In the floor frame, the ray from (0, 0, 10) along (1, 0, -1), heading down at 45 degrees, is laid out as the ray from the origin along X.

Exceptions

ArgumentException

Thrown when the ray runs along the normal of the frame, so that its direction has no length in the plane.