23 references to TraversalDirection
ReachFramework (23)
AlphaFlattener\Utility.cs (23)
2368
_rectDirection =
TraversalDirection
.None;
2446
private
TraversalDirection
_rectDirection =
TraversalDirection
.Invalid;
2470
return _rectDirection !=
TraversalDirection
.Invalid;
2549
TraversalDirection
dir = GetDirection(point - _rectLastPoint);
2551
if (dir !=
TraversalDirection
.None &&
2552
_rectDirection !=
TraversalDirection
.None &&
2580
_rectDirection =
TraversalDirection
.Invalid;
2623
private static
TraversalDirection
GetDirection(Vector vector)
2631
return
TraversalDirection
.None;
2636
return (vector.Y < 0) ?
TraversalDirection
.Up :
TraversalDirection
.Down;
2641
return (vector.X < 0) ?
TraversalDirection
.Left :
TraversalDirection
.Right;
2646
return
TraversalDirection
.Invalid;
2656
private static bool ArePerpendicularDirections(
TraversalDirection
d1,
TraversalDirection
d2)
2658
if (d1 ==
TraversalDirection
.Invalid || d2 ==
TraversalDirection
.Invalid)
2665
int prev = (d2 ==
TraversalDirection
.FirstValid) ? (int)
TraversalDirection
.LastValid : ((int)d2 - 1);
2666
int next = (d2 ==
TraversalDirection
.LastValid) ? (int)
TraversalDirection
.FirstValid : ((int)d2 + 1);