Method TryOffset
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
TryOffset(GeoCircle3, double, out GeoCircle3)
Grows a circle within its plane by a distance, or shrinks it when the distance is negative, using the default tolerance.
public static bool TryOffset(GeoCircle3 circle, double distance, out GeoCircle3 result)
Parameters
circleGeoCircle3The circle.
distancedoubleHow far the circumference moves: outward when positive.
resultGeoCircle3The concentric circle, or the circle unchanged when the method returns false.
Returns
- bool
true if a circle is left; false if it shrinks to nothing.
TryOffset(GeoCircle3, double, out GeoCircle3, Tolerance)
Grows a circle within its plane by a distance, or shrinks it when the distance is negative, within a tolerance.
public static bool TryOffset(GeoCircle3 circle, double distance, out GeoCircle3 result, Tolerance tolerance)
Parameters
circleGeoCircle3The circle.
distancedoubleHow far the circumference moves: outward when positive.
resultGeoCircle3The concentric circle, or the circle unchanged when the method returns false.
toleranceToleranceThe tolerance deciding when a radius is too small to keep.
Returns
- bool
true if a circle is left; false if it shrinks to nothing.
Exceptions
- ArgumentOutOfRangeException
Thrown when the distance is not a finite number.