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