Table of Contents

Method IsEqualTo

Namespace
GeometryHelper
Assembly
GeometryHelper.dll

IsEqualTo(Angle)

Compares whether this angle equals another angle using the default angular tolerance.

public bool IsEqualTo(Angle other)

Parameters

other Angle

Returns

bool

Remarks

The comparison is made on the stored values, not on the directions they represent, so 0 and one full turn are not equal here. Call Normalize() on both sides first when the question is about direction rather than about rotation.

IsEqualTo(Angle, Tolerance)

Compares whether this angle equals another angle within an angular tolerance.

public bool IsEqualTo(Angle other, Tolerance tolerance)

Parameters

other Angle
tolerance Tolerance

Returns

bool

Remarks

The comparison is made on the stored values, not on the directions they represent, so 0 and one full turn are not equal here. Call Normalize() on both sides first when the question is about direction rather than about rotation.