Dungeon Architect  17.0.0
DungeonArchitect.IntVector2 Struct Reference

Represent an integer vector More...

Public Member Functions

 IntVector2 (Vector3 v)
 
 IntVector2 (int x, int y)
 
void Set (int x, int y)
 
int ManhattanDistance ()
 
float DistanceSq ()
 
IntVector2 Abs ()
 
float Distance ()
 
Vector2 ToVector2 ()
 
override bool Equals (System.Object obj)
 
override int GetHashCode ()
 

Static Public Member Functions

static IntVector2 operator+ (IntVector2 a, IntVector2 b)
 
static IntVector2 operator- (IntVector2 a, IntVector2 b)
 
static IntVector2 operator* (IntVector2 a, IntVector2 b)
 
static Vector3 operator* (IntVector2 a, Vector3 b)
 
static IntVector2 operator/ (IntVector2 a, IntVector2 b)
 
static IntVector2 operator+ (IntVector2 a, int b)
 
static IntVector2 operator- (IntVector2 a, int b)
 
static IntVector2 operator* (IntVector2 a, int b)
 
static IntVector2 operator/ (IntVector2 a, int b)
 
static Vector2 ToV2 (IntVector2 iv)
 

Public Attributes

int x
 
int y
 

Static Public Attributes

static readonly IntVector2 Zero = new IntVector2(0, 0)
 

Detailed Description

Represent an integer vector

Definition at line 11 of file IntVector2.cs.


The documentation for this struct was generated from the following file: