Method TransformBy
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
TransformBy(GeoTransform2)
Gets the loop under a transformation.
public GeoPolygonArc2 TransformBy(GeoTransform2 transform)
Parameters
transformGeoTransform2The transformation to apply.
Returns
- GeoPolygonArc2
The transformed loop.
Remarks
Mirroring turns every arc the other way, so the bulges change sign, and the mirrored vertices trace the opposite winding, so a loop that ran counter-clockwise comes back clockwise. A transformation that skews the axes or scales them differently makes an arc part of an ellipse, and is refused where an edge would land further than the global point tolerance off it, as TransformBy(GeoTransform2) reads it.
Each edge is carried on its own and the loop kept edge for edge, every arc and side however small, as Translate(GeoVector2) keeps it; a loop scaled down keeps the sides that come out shorter than the global tolerance too.
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.