Table of Contents

Method TransformBy

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

TransformBy(GeoTransform3)

Applies a transformation to this line.

public GeoXLine3 TransformBy(GeoTransform3 transform)

Parameters

transform GeoTransform3

The transformation to apply.

Returns

GeoXLine3

The transformed line, its direction normalized again.

Remarks

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

Exceptions

ArgumentNullException

Thrown when the transformation is null.

InvalidOperationException

Thrown when the transformation flattens the direction to nothing.