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