public enum TKSwipeDirection
{
Left = (1 << 0),
Right = (1 << 1),
Up = (1 << 2),
Down = (1 << 3),
UpLeft = (1 << 4),
DownLeft = (1 << 5),
UpRight = (1 << 6),
DownRight = (1 << 7),
Horizontal = (Left | Right),
Vertical = (Up | Down),
Cardinal = (Horizontal | Vertical),
DiagonalUp = (UpLeft | UpRight),
DiagonalDown = (DownLeft | DownRight),
DiagonalLeft = (UpLeft | DownLeft),
DiagonalRight = (UpRight | DownRight),
Diagonal = (DiagonalUp | DiagonalDown),
RightSide = (Right | DiagonalRight),
LeftSide = (Left | DiagonalLeft),
TopSide = (Up | DiagonalUp),
BottomSide = (Down | DiagonalDown),
All = (Horizontal | Vertical | Diagonal)
}
'프로그래밍 > 수학' 카테고리의 다른 글
좌표계 (직교,극) (0) | 2018.03.09 |
---|