#include <myVector.h>
Public Member Functions | |
| Vector () | |
| void | normalize () |
| void | setValue (double x, double y) |
| double | distsqr (const Vector &v) |
| double | getX () |
| double | getY () |
| void | setX (double x) |
| void | setY (double y) |
| Vector & | operator= (const Vector &v) |
| Vector & | operator+= (const Vector &v) |
| Vector & | operator-= (const Vector &v) |
| Vector | operator+ (const Vector &v) |
| Vector | operator- (const Vector &v) |
| Vector | operator * (const double s) |
| bool | operator== (const Vector &v) |
| bool | operator!= (const Vector &v) |
Protected Attributes | |
| double | x |
| double | y |
Friends | |
| std::ostream & | operator<< (std::ostream &Stream, const Vector v) |
| double Vector::distsqr | ( | const Vector & | v | ) |
| double Vector::getX | ( | ) | [inline] |
| double Vector::getY | ( | ) | [inline] |
| void Vector::normalize | ( | ) |
| Vector Vector::operator * | ( | const double | s | ) |
| bool Vector::operator!= | ( | const Vector & | v | ) |
| bool Vector::operator== | ( | const Vector & | v | ) |
| std::ostream& operator<< | ( | std::ostream & | Stream, | |
| const Vector | v | |||
| ) | [friend] |
double Vector::x [protected] |
double Vector::y [protected] |
1.4.7