Method Offset
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
Offset(double)
Grows this polygon by a distance, or shrinks it when the distance is negative, with sharp corners, using default tolerance. See Offset(GeoPolygon2, double, OffsetOptions, Tolerance).
public GeoPolygon2[] Offset(double distance)
Parameters
distancedoubleHow far the boundary moves: outward when positive, inward when negative.
Returns
- GeoPolygon2[]
The boundary loops of the offset region: none, one, or several; holes wound the other way.
Offset(double, Tolerance)
Grows this polygon by a distance, or shrinks it when the distance is negative, with sharp corners, within tolerance.
public GeoPolygon2[] Offset(double distance, Tolerance tolerance)
Parameters
Returns
Offset(double, OffsetJoin)
Grows this polygon by a distance, or shrinks it when the distance is negative, with the given corners, using default tolerance.
public GeoPolygon2[] Offset(double distance, OffsetJoin join)
Parameters
distancedoublejoinOffsetJoin
Returns
Offset(double, OffsetJoin, Tolerance)
Grows this polygon by a distance, or shrinks it when the distance is negative, with the given corners, within tolerance.
public GeoPolygon2[] Offset(double distance, OffsetJoin join, Tolerance tolerance)
Parameters
distancedoublejoinOffsetJointoleranceTolerance
Returns
Offset(double, OffsetOptions)
Grows this polygon by a distance, or shrinks it when the distance is negative, as the options say, using default tolerance.
public GeoPolygon2[] Offset(double distance, OffsetOptions options)
Parameters
distancedoubleoptionsOffsetOptions
Returns
Offset(double, OffsetOptions, Tolerance)
Grows this polygon by a distance, or shrinks it when the distance is negative, as the options say, within tolerance.
public GeoPolygon2[] Offset(double distance, OffsetOptions options, Tolerance tolerance)
Parameters
distancedoubleoptionsOffsetOptionstoleranceTolerance