Vector

struct HPS.Vector

Public Functions

Vector Cross (Vector v)
float Dot (Vector v)
override bool Equals (object obj)
bool Equals (Point p)
bool Equals (Vector p)
override int GetHashCode ()
double Length ()
double Length2D ()
double LengthSquared ()
double LengthSquared2D ()
float Magnitude ()
float Manhattan ()
Vector Normalize (bool check_range = false, float epsilon = 1.0e-20f)
Vector Normalize (float epsilon)
Vector Scale (Vector v)
Vector (float in_x, float in_y, float in_z)
Vector (Plane p)
Vector (Point p)
Vector (Vector v)
Vector (Vector2D v)

Public Members

float x
float y
float z

Public Static Functions

bool operator!= (Vector p1, Vector p2)
Vector operator* (float f, Vector v)
Vector operator* (Vector v, float s)
Vector operator+ (Vector v1, Vector v2)
Vector operator- (Vector v1)
Vector operator- (Vector v1, Vector v2)
Vector operator/ (Vector v, float s)
bool operator== (Vector p1, Vector p2)
Vector Unit ()
Vector XAxis ()
Vector YAxis ()
Vector ZAxis ()
Vector Zero ()