Calc.AngleEquals Method

Checks if two angles are equal with a small tolerance.
public static bool AngleEquals( 
   double angle1
   double angle2
   double acc = Calc.Epsilon 
)

Parameters

angle1
double

The first angle to compare.

angle2
double

The last angle to compare.

acc
double

Return Value

bool

true if the angles are about the same. This is, if they represent the same direction, not if they are numerically equal.

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition