Method Mirror
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
Mirror(GeoLine2)
Creates a reflection across the line carrying a segment.
public static GeoTransform2 Mirror(GeoLine2 line)
Parameters
lineGeoLine2The segment, read as the infinite line carrying it.
Returns
- GeoTransform2
The transformation that mirrors everything across that line.
Remarks
A reflection turns a shape round: a polygon that ran counter-clockwise comes back clockwise, and its signed area changes sign while its area does not.
Exceptions
- InvalidOperationException
Thrown when the segment is too short to have a direction.