Method IsEqualTo
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
IsEqualTo(GeoEllipse3, GeoEllipse3)
Determines whether two ellipses in space are the same shape in the same place, within the default tolerance.
public static bool IsEqualTo(GeoEllipse3 ellipse, GeoEllipse3 other)
Parameters
ellipseGeoEllipse3otherGeoEllipse3
Returns
IsEqualTo(GeoEllipse3, GeoEllipse3, Tolerance)
Determines whether two ellipses in space are the same shape in the same place, within a tolerance.
public static bool IsEqualTo(GeoEllipse3 ellipse, GeoEllipse3 other, Tolerance tolerance)
Parameters
ellipseGeoEllipse3The first ellipse.
otherGeoEllipse3The second ellipse.
toleranceToleranceThe tolerance: the point tolerance for the centres and the radii, the vector tolerance for the normals and the axes.
Returns
- bool
true if the centres and both radii agree within the point tolerance, the normals within the vector tolerance, and the major axes along the same line within the vector tolerance; otherwise, false.
Remarks
The normals are compared the way round they point, as a circle's are: an ellipse facing down is not the one facing up, its angle running the other way. An axis pointing the other way draws the same ellipse, so the axes are compared either way round; when both ellipses are circles they are not compared at all.