Table of Contents

Enum Direction2

Namespace
MLEM.Maths
Assembly
MLEM.dll

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 = 4

The down direction, or +y.

[EnumMember] DownLeft = Down | Left

The down and left direction, or -x, +y.

[EnumMember] DownRight = Right | Down

The down and right direction, or +x, +y.

[EnumMember] Left = 8

The left direction, or -x.

[EnumMember] None = 0

No direction.

[EnumMember] Right = 2

The right direction, or +x.

[EnumMember] Up = 1

The up direction, or -y.

[EnumMember] UpLeft = Up | Left

The up and left direction, or -x, -y.

[EnumMember] UpRight = Up | Right

The up and right direction, or +x, -y.