Method IsEqualTo
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
IsEqualTo(GeoEllipse2, GeoEllipse2)
Determines whether two ellipses are the same shape in the same place, within the default tolerance.
public static bool IsEqualTo(GeoEllipse2 ellipse, GeoEllipse2 other)
Parameters
ellipseGeoEllipse2otherGeoEllipse2
Returns
IsEqualTo(GeoEllipse2, GeoEllipse2, Tolerance)
Determines whether two ellipses are the same shape in the same place, within a tolerance.
public static bool IsEqualTo(GeoEllipse2 ellipse, GeoEllipse2 other, Tolerance tolerance)
Parameters
ellipseGeoEllipse2The first ellipse.
otherGeoEllipse2The second ellipse.
toleranceToleranceThe tolerance: the point tolerance for the centres and the radii, the vector tolerance for the axes.
Returns
- bool
true if the centres and both radii agree within the point tolerance and the major axes along the same line within the vector tolerance; otherwise, false.
Remarks
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.