Table of Contents

Method TransformBy

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

TransformBy(GeoTransform2)

Applies a transformation to this ray.

public GeoRay2 TransformBy(GeoTransform2 transform)

Parameters

transform GeoTransform2

The transformation to apply.

Returns

GeoRay2

The transformed ray, its direction normalized again.

Remarks

The origin is moved as a point and the direction as a vector, so an uneven scaling turns the ray as well as moving it: the ray from the origin at 45 degrees, scaled by 2 along X only, runs towards (2, 1).

Exceptions

ArgumentNullException

Thrown when the transformation is null.

InvalidOperationException

Thrown when the transformation flattens the direction to nothing.