23 references to TraversalDirection
ReachFramework (23)
AlphaFlattener\Utility.cs (23)
2369
_rectDirection =
TraversalDirection
.None;
2447
private
TraversalDirection
_rectDirection =
TraversalDirection
.Invalid;
2471
return _rectDirection !=
TraversalDirection
.Invalid;
2550
TraversalDirection
dir = GetDirection(point - _rectLastPoint);
2552
if (dir !=
TraversalDirection
.None &&
2553
_rectDirection !=
TraversalDirection
.None &&
2581
_rectDirection =
TraversalDirection
.Invalid;
2624
private static
TraversalDirection
GetDirection(Vector vector)
2632
return
TraversalDirection
.None;
2637
return (vector.Y < 0) ?
TraversalDirection
.Up :
TraversalDirection
.Down;
2642
return (vector.X < 0) ?
TraversalDirection
.Left :
TraversalDirection
.Right;
2647
return
TraversalDirection
.Invalid;
2657
private static bool ArePerpendicularDirections(
TraversalDirection
d1,
TraversalDirection
d2)
2659
if (d1 ==
TraversalDirection
.Invalid || d2 ==
TraversalDirection
.Invalid)
2666
int prev = (d2 ==
TraversalDirection
.FirstValid) ? (int)
TraversalDirection
.LastValid : ((int)d2 - 1);
2667
int next = (d2 ==
TraversalDirection
.LastValid) ? (int)
TraversalDirection
.FirstValid : ((int)d2 + 1);