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

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

float x
 
float y
 

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