Table of Contents

Method TransformBy

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

TransformBy(GeoTransform2)

Gets the edge under a transformation.

public GeoEdge2 TransformBy(GeoTransform2 transform)

Parameters

transform GeoTransform2

The transformation to apply.

Returns

GeoEdge2

The transformed edge.

Remarks

A bulge is the shape of the arc against its own chord, so moving, turning and scaling evenly leave it alone, and mirroring changes its sign because the arc then leans the other way. A transformation that skews the axes or scales them differently makes an arc part of an ellipse: the edge is then the edge from where its ends land through where its middle lands, as in space (TransformBy(GeoTransform3)), where that lands within the global point tolerance of where the transformation puts the rest of it, as the arc is (TransformBy(GeoTransform2)), and is refused otherwise rather than answered with an arc visibly off the ellipse. The edge of bulge 0.5 from (0, 0) to (100, 0) under the skew that sends Y to (0.000001, 1) ends at (100, 0); under the one that sends X to (1, 0) and Y to (0.6, 0.8) it is refused, the arc through those three points standing far off the ellipse it becomes. An edge 100 long bowing by 1E-12 moves under a turn rounded to six places, where it was refused for want of digits.

Exceptions

ArgumentNullException

Thrown when the transformation is null.

InvalidOperationException

Thrown when the transformation would skew or stretch an arc into part of an ellipse it would land visibly off.