Vector2D

struct HPS.Vector2D

Public Functions

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

Public Members

float x
float y

Public Static Functions

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