Enum Direction2
An enum that represents two-dimensional directions. Both straight and diagonal directions are supported. There are several extension methods and arrays available in Direction2Helper.
[Flags]
[DataContract]
public enum Direction2
- Extension Methods
Fields
[EnumMember] Down = 4The down direction, or +y.
[EnumMember] DownLeft = Down | LeftThe down and left direction, or -x, +y.
[EnumMember] DownRight = Right | DownThe down and right direction, or +x, +y.
[EnumMember] Left = 8The left direction, or -x.
[EnumMember] None = 0No direction.
[EnumMember] Right = 2The right direction, or +x.
[EnumMember] Up = 1The up direction, or -y.
[EnumMember] UpLeft = Up | LeftThe up and left direction, or -x, -y.
[EnumMember] UpRight = Up | RightThe up and right direction, or +x, -y.