Table of Contents

Method TransformBy

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

TransformBy(GeoTransform3)

Applies a transformation to every vertex.

public GeoPolygon3 TransformBy(GeoTransform3 transform)

Parameters

transform GeoTransform3

Returns

GeoPolygon3

Remarks

The polygon is transformed side for side, however short a side: at a millionth, the triangle (0, 0, 0), (10, 0, 0), (10, 0, 10) with every corner cut by 0.0003 keeps its six corners scaled by 2 or sheared, where it was put back together within the global tolerance of a thousandth and came back three. Only a corner the transformation lands on the very same point as the one before it goes. An even scaling, turned, moved or mirrored besides, carries the polygon as a move does, its area scaled: a square 100 across with a corner 0.0009 off flat scaled by 10 is kept, where it was refused as not flat, and the cut triangle shrunk by a ten-thousandth keeps its six corners, 0.0007 wide. A transformation that stretches one way more than another or shears has the polygon checked flat and enclosing an area within the global tolerance loosened as far as the transformation stretches any direction: off flat within ten times the tolerance under a stretch by 10, and wide within half of it under a scaling by 0.2, 0.25 and 0.5, which keeps a square 0.003 across as one 0.0006 by 0.00075. Neither is made finer than the global tolerance, so what was kept before is kept still. A projection that flattens the polygon to a line is still refused.

Exceptions

ArgumentNullException

Thrown when the transformation is null.

ArgumentException

Thrown when the transformation flattens the polygon so that it no longer encloses an area, or has an entry that is not a finite number.