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

Inherits IEquatable< Point3 >, and IBinarySerializable.

Public Member Functions

void Deserialize (BinaryReader reader)
 
override bool Equals (Object obj)
 
bool Equals (Point3 other)
 
override int GetHashCode ()
 
 Point3 (int x, int y, int z)
 
void Serialize (BinaryWriter writer)
 
override string ToString ()
 

Static Public Member Functions

static Point3 Cross (Point3 a, Point3 b)
 
static float Distance (DPoint a, DPoint b)
 
static int Dot (Point3 a, Point3 b)
 
static Point3 Max (Point3 a, Point3 b)
 
static Point3 Min (Point3 a, Point3 b)
 
static bool operator!= (Point3 a, Point3 b)
 
static Point3 operator* (Point3 a, int f)
 
static Point3 operator* (Point3 a, Point3 b)
 
static Point3 operator+ (Point3 a, Point3 b)
 
static Point3 operator- (Point3 a)
 
static Point3 operator- (Point3 a, Point3 b)
 
static bool operator== (Point3 a, Point3 b)
 
static Point3 RotateY (Point3 p, int quarters)
 

Public Attributes

int x
 
int y
 
int z
 

Static Public Attributes

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

Properties

int[] array [get]
 
float magnitude [get]
 
int sqrMagnitude [get]
 
int this[int index] [get, set]
 
Point xy [get]
 
Point xz [get]
 
Point yz [get]
 

Member Function Documentation

◆ Deserialize()

void Deserialize ( BinaryReader reader)

Implements IBinarySerializable.

◆ Serialize()

void Serialize ( BinaryWriter writer)

Implements IBinarySerializable.