Free Software Foundation GPLv3 LGPL Electronic Frontier Foundation
OpenGraphtheory::Visualization::Vector2D Class Reference

Public Member Functions

 Vector2D (float X, float Y)
 Vector2D (const Vector2D &Copy)
Vector2D operator= (const Vector2D &Copy)
Vector2D operator+ (const Vector2D &Sum) const
Vector2D operator- (const Vector2D &Diff) const
void operator+= (const Vector2D &Sum)
void operator-= (const Vector2D &Diff)
float operator* (const Vector2D &Prod) const
Vector2D operator* (float Prod) const
void operator*= (float Prod)
Vector2D operator/ (float Div) const
void operator/= (float Div)
Vector2D Perpendicular () const
float Length () const
Vector2D Normalized () const
float Theta () const

Static Public Member Functions

static float Distance (const Vector2D &a, const Vector2D &b)
static Vector2D Intersection (const Vector2D &a, const Vector2D &b, const Vector2D &c, const Vector2D &d)

Public Attributes

float x
float y

The documentation for this class was generated from the following files:
  • sources/
  • sources/
Impressum, Datenschutzerklärung Contributors