Struct Int2

Struct Documentation

struct Int2

Auxiliar class to store coordinates inside the world grid.

Public Functions

Int2(int x, int y)

Constructor

override bool Equals(System.Object o)

Equals override

override int GetHashCode()

Hash override

Public Members

int x

x coordinate

int y

y coordinate

Property

property Int2::sqrMagnitude

Module

property Int2::sqrMagnitudeLong

Module(long)

Public Static Functions

static Int2 operator+(Int2 a, Int2 b)

  • override

static Int2 operator-(Int2 a, Int2 b)

  • override

static bool operator==(Int2 a, Int2 b)

== override

static bool operator!=(Int2 a, Int2 b)

!= override

static int Dot(Int2 a, Int2 b)

dot override

static long DotLong(Int2 a, Int2 b)

dot(long) override