Table of Contents

Method TransformBy

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

TransformBy(GeoTransform2)

Applies a transformation to this line.

public GeoXLine2 TransformBy(GeoTransform2 transform)

Parameters

transform GeoTransform2

The transformation to apply.

Returns

GeoXLine2

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, scaled by 2 along X only, runs along (2, 1).

Exceptions

ArgumentNullException

Thrown when the transformation is null.

InvalidOperationException

Thrown when the transformation flattens the direction to nothing.