Calc.IsAngleBetween Method

Checks if an angle lies between two other angles, in the given direction.
public static bool IsAngleBetween( 
   double queryangle
   double startangle
   double endangle
   Direction dir 
)

Parameters

queryangle
double

The angle to look up.

startangle
double

The start angle of the span to look in.

endangle
double

The end angle of the span to look in.

dir
Direction

Direction of the span from startangle to endangle.

Return Value

bool

true if the angle is included in the specified span.

.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