Table of Contents

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

circle GeoCircle3

The circle.

distance double

How far the circumference moves: outward when positive.

result GeoCircle3

The 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

circle GeoCircle3

The circle.

distance double

How far the circumference moves: outward when positive.

result GeoCircle3

The concentric circle, or the circle unchanged when the method returns false.

tolerance Tolerance

The 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.