Poly2d.IsOuterCorner Method

Detects if a node in a poly is an outside corner. Poly is supposed to be closed and CCW.
public bool IsOuterCorner( 
   int pos
   double angle
   bool ccw = true 
)

Parameters

pos
int

The node to check

angle
double

The "turn angle", If angle is larger than this is counted as a corner.

ccw
bool

Return Value

bool

true if a corner false otherwise

.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