Table of Contents

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

ellipse GeoEllipse2
other GeoEllipse2

Returns

bool

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

ellipse GeoEllipse2

The first ellipse.

other GeoEllipse2

The second ellipse.

tolerance Tolerance

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