tModLoader v2024.11
A mod to make and play Terraria mods
Point16 Struct Reference

Public Member Functions

 Point16 (int size)
 
 Point16 (int X, int Y)
 
 Point16 (Point point)
 
 Point16 (short size)
 
 Point16 (short X, short Y)
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
Point16 Max (int compareX, int compareY)
 
Point16 Max (Point16 compareTo)
 
override string ToString ()
 

Static Public Member Functions

static Point16 Max (int firstX, int firstY, int secondX, int secondY)
 
static bool operator!= (Point16 first, Point16 second)
 
static Point16 operator% (Point16 first, int num)
 
static Point16 operator* (Point16 first, Point16 second)
 
static Point16 operator+ (Point16 first, Point16 second)
 
static Point16 operator- (Point16 first, Point16 second)
 
static Point16 operator/ (Point16 first, Point16 second)
 
static bool operator== (Point16 first, Point16 second)
 

Public Attributes

readonly short X
 
readonly short Y
 

Static Public Attributes

static Point16 NegativeOne = new Point16(-1, -1)
 
static Point16 Zero = new Point16(0, 0)