Table of Contents

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

ellipse GeoEllipse3
other GeoEllipse3

Returns

bool

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

ellipse GeoEllipse3

The first ellipse.

other GeoEllipse3

The second ellipse.

tolerance Tolerance

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