Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
HPS.Vector Struct Reference

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

float x
 
float y
 
float z
 

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