geoff_geometry::Vector2d Class Reference

#include <geometry.h>

Public Member Functions

void get (double xyz[2])
 
double getx () const
 
double gety () const
 
double magnitude (void) const
 
double magnitudesqd (void) const
 
double normalise ()
 
bool operator!= (const Vector2d &v) const
 
double operator* (const Vector2d &v) const
 
Vector2d operator* (double c) const
 
Vector2d operator* (int c) const
 
const Vector2doperator*= (double c)
 
Vector2d operator+ (const double d)
 
Point operator+ (const Point &p) const
 
Vector2d operator+ (const Vector2d &v) const
 
const Vector2doperator+= (const Vector2d &v)
 
Vector2d operator- (const double d)
 
Vector2d operator- (const Vector2d &v) const
 
const Vector2d operator- (void) const
 
const Vector2doperator-= (const Vector2d &v)
 
bool operator== (const Vector2d &v) const
 
double operator^ (const Vector2d &v) const
 
Vector2d operator~ (void) const
 
void putx (double x)
 
void puty (double y)
 
void Rotate (double angle)
 
void Rotate (double cosa, double sina)
 
void Transform (const Matrix &m)
 
 Vector2d ()
 
 Vector2d (const Point &p)
 
 Vector2d (const Point &p0, const Point &p1)
 
 Vector2d (const Point *p0, const Point *p1)
 
 Vector2d (const Vector3d &v)
 
 Vector2d (double angle)
 
 Vector2d (double x, double y)
 

Friends

wostream & operator<< (wostream &op, Vector2d &v)
 

Constructor & Destructor Documentation

◆ Vector2d() [1/7]

geoff_geometry::Vector2d::Vector2d ( )

◆ Vector2d() [2/7]

geoff_geometry::Vector2d::Vector2d ( const Vector3d v)

◆ Vector2d() [3/7]

geoff_geometry::Vector2d::Vector2d ( double  x,
double  y 
)

◆ Vector2d() [4/7]

geoff_geometry::Vector2d::Vector2d ( const Point p0,
const Point p1 
)

◆ Vector2d() [5/7]

geoff_geometry::Vector2d::Vector2d ( const Point p0,
const Point p1 
)

◆ Vector2d() [6/7]

geoff_geometry::Vector2d::Vector2d ( const Point p)

◆ Vector2d() [7/7]

geoff_geometry::Vector2d::Vector2d ( double  angle)

Member Function Documentation

◆ get()

void geoff_geometry::Vector2d::get ( double  xyz[2])

◆ getx()

double geoff_geometry::Vector2d::getx ( ) const

◆ gety()

double geoff_geometry::Vector2d::gety ( ) const

◆ magnitude()

◆ magnitudesqd()

double geoff_geometry::Vector2d::magnitudesqd ( void  ) const

◆ normalise()

double geoff_geometry::Vector2d::normalise ( )

◆ operator!=()

bool geoff_geometry::Vector2d::operator!= ( const Vector2d v) const

◆ operator*() [1/3]

double geoff_geometry::Vector2d::operator* ( const Vector2d v) const

◆ operator*() [2/3]

Vector2d geoff_geometry::Vector2d::operator* ( double  c) const

References Vector2d().

◆ operator*() [3/3]

Vector2d geoff_geometry::Vector2d::operator* ( int  c) const

References Vector2d().

◆ operator*=()

const Vector2d & geoff_geometry::Vector2d::operator*= ( double  c)

◆ operator+() [1/3]

Vector2d geoff_geometry::Vector2d::operator+ ( const double  d)

References Vector2d().

◆ operator+() [2/3]

Point geoff_geometry::Vector2d::operator+ ( const Point p) const

◆ operator+() [3/3]

Vector2d geoff_geometry::Vector2d::operator+ ( const Vector2d v) const

References Vector2d().

◆ operator+=()

const Vector2d & geoff_geometry::Vector2d::operator+= ( const Vector2d v)

◆ operator-() [1/3]

Vector2d geoff_geometry::Vector2d::operator- ( const double  d)

References Vector2d().

◆ operator-() [2/3]

Vector2d geoff_geometry::Vector2d::operator- ( const Vector2d v) const

References Vector2d().

◆ operator-() [3/3]

const Vector2d geoff_geometry::Vector2d::operator- ( void  ) const

References Vector2d().

◆ operator-=()

const Vector2d & geoff_geometry::Vector2d::operator-= ( const Vector2d v)

◆ operator==()

bool geoff_geometry::Vector2d::operator== ( const Vector2d v) const

References geoff_geometry::FEQ().

◆ operator^()

double geoff_geometry::Vector2d::operator^ ( const Vector2d v) const

◆ operator~()

Vector2d geoff_geometry::Vector2d::operator~ ( void  ) const

References Vector2d().

◆ putx()

void geoff_geometry::Vector2d::putx ( double  x)

◆ puty()

void geoff_geometry::Vector2d::puty ( double  y)

◆ Rotate() [1/2]

void geoff_geometry::Vector2d::Rotate ( double  angle)

References geoff_geometry::FEQZ(), and Rotate().

Referenced by Rotate().

◆ Rotate() [2/2]

void geoff_geometry::Vector2d::Rotate ( double  cosa,
double  sina 
)

◆ Transform()

void geoff_geometry::Vector2d::Transform ( const Matrix m)

References normalise().

Friends And Related Function Documentation

◆ operator<<

wostream & operator<< ( wostream &  op,
Vector2d v 
)
friend

The documentation for this class was generated from the following files: