LayerProcGen v0.1.0
Layer-based infinite procedural generation
Loading...
Searching...
No Matches
Point

Inherits IEquatable< Point >, and IBinarySerializable.

Public Member Functions

void Deserialize (BinaryReader reader)
 
override bool Equals (object obj)
 
bool Equals (Point other)
 
string GetASCII ()
 
override int GetHashCode ()
 
 Point (int x, int y)
 
void Serialize (BinaryWriter writer)
 
override string ToString ()
 

Static Public Member Functions

static float Distance (DPoint a, DPoint b)
 
static Point FromASCII (string ascii)
 
static Point Max (Point a, Point b)
 
static Point Min (Point a, Point b)
 
static operator Point (Point3 p)
 
static bool operator!= (Point a, Point b)
 
static Point operator* (Point a, int f)
 
static Point operator* (Point a, Point b)
 
static Point operator+ (Point a, Point b)
 
static Point operator- (Point a)
 
static Point operator- (Point a, Point b)
 
static Point operator/ (Point a, int f)
 
static Point operator/ (Point a, Point b)
 
static bool operator== (Point a, Point b)
 
static Point Rotate (Point p, int quarters)
 

Public Attributes

int x
 
int y
 

Static Public Attributes

static Point one = new Point(1, 1)
 
static Point right = new Point(1, 0)
 
static Point up = new Point(0, 1)
 
static Point zero = new Point(0, 0)
 

Properties

int[] array [get]
 
float magnitude [get]
 
Point3 oxy [get]
 
int sqrMagnitude [get]
 
int this[int index] [get, set]
 
Point3 xoy [get]
 
Point3 xyo [get]
 

Member Function Documentation

◆ Deserialize()

void Deserialize ( BinaryReader reader)

Implements IBinarySerializable.

◆ Serialize()

void Serialize ( BinaryWriter writer)

Implements IBinarySerializable.