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
equalPointdoubleDistance threshold when comparing two points.
equalVectordoubleThreshold 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
equalPointdoubleDistance threshold when comparing two points.
equalVectordoubleThreshold when comparing two vectors.
equalAngleRaddoubleAngular 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
equalPointdoubleDistance threshold when comparing two points.
equalVectordoubleThreshold when comparing two vectors.
equalAngleRaddoubleAngular threshold when comparing angles or parallelism, in radians.
equalPlanardoubleDistance threshold when deciding whether points share a plane.
Exceptions
- ArgumentOutOfRangeException
Thrown when one of the thresholds is negative.