Table of Contents

Constructor Tolerance

Namespace
GeometryHelper
Assembly
GeometryHelper.dll

Tolerance(double, double)

Initializes a tolerance instance with thresholds for points and vectors, using the default angular and planar thresholds.

public Tolerance(double equalPoint, double equalVector)

Parameters

equalPoint double

Distance threshold when comparing two points.

equalVector double

Threshold when comparing two vectors.

Exceptions

ArgumentOutOfRangeException

Thrown when one of the thresholds is negative.

Tolerance(double, double, double)

Initializes a tolerance instance with thresholds for points, vectors and angles. The planar threshold follows equalPoint, since coplanarity is measured as a distance.

public Tolerance(double equalPoint, double equalVector, double equalAngleRad)

Parameters

equalPoint double

Distance threshold when comparing two points.

equalVector double

Threshold when comparing two vectors.

equalAngleRad double

Angular threshold when comparing angles or parallelism, in radians.

Exceptions

ArgumentOutOfRangeException

Thrown when one of the thresholds is negative.

Tolerance(double, double, double, double)

Initializes a tolerance instance with thresholds for points, vectors, angles and coplanarity.

public Tolerance(double equalPoint, double equalVector, double equalAngleRad, double equalPlanar)

Parameters

equalPoint double

Distance threshold when comparing two points.

equalVector double

Threshold when comparing two vectors.

equalAngleRad double

Angular threshold when comparing angles or parallelism, in radians.

equalPlanar double

Distance threshold when deciding whether points share a plane.

Exceptions

ArgumentOutOfRangeException

Thrown when one of the thresholds is negative.