kig
coordinate.cpp File Reference
#include "coordinate.h"
#include <qglobal.h>
#include <cmath>
#include <kdebug.h>
#include "common.h"

Go to the source code of this file.
Functions | |
| double | operator * (const Coordinate &a, const Coordinate &b) |
| const Coordinate | operator * (double r, const Coordinate &a) |
| const Coordinate | operator * (const Coordinate &a, double r) |
| bool | operator!= (const Coordinate &a, const Coordinate &b) |
| const Coordinate | operator+ (const Coordinate &a, const Coordinate &b) |
| const Coordinate | operator- (const Coordinate &a, const Coordinate &b) |
| const Coordinate | operator/ (const Coordinate &a, double r) |
| QDebug & | operator<< (QDebug &s, const Coordinate &t) |
| bool | operator== (const Coordinate &a, const Coordinate &b) |
Function Documentation
| double operator * | ( | const Coordinate & | a, | |
| const Coordinate & | b | |||
| ) |
Returns the scalar product of a and b.
Definition at line 181 of file coordinate.cpp.
| const Coordinate operator * | ( | double | r, | |
| const Coordinate & | a | |||
| ) |
Definition at line 54 of file coordinate.cpp.
| const Coordinate operator * | ( | const Coordinate & | a, | |
| double | r | |||
| ) |
Returns this a, scaled by a factor of r.
Definition at line 49 of file coordinate.cpp.
| bool operator!= | ( | const Coordinate & | a, | |
| const Coordinate & | b | |||
| ) |
Tests two Coordinates for inequality.
Definition at line 69 of file coordinate.cpp.
| const Coordinate operator+ | ( | const Coordinate & | a, | |
| const Coordinate & | b | |||
| ) |
Returns the sum of a and b.
Definition at line 39 of file coordinate.cpp.
| const Coordinate operator- | ( | const Coordinate & | a, | |
| const Coordinate & | b | |||
| ) |
Returns the difference between a and b.
Definition at line 44 of file coordinate.cpp.
| const Coordinate operator/ | ( | const Coordinate & | a, | |
| double | r | |||
| ) |
Returns a, scaled by a factor of 1/r.
Definition at line 59 of file coordinate.cpp.
| QDebug& operator<< | ( | QDebug & | s, | |
| const Coordinate & | t | |||
| ) |
Definition at line 33 of file coordinate.cpp.
| bool operator== | ( | const Coordinate & | a, | |
| const Coordinate & | b | |||
| ) |
Tests two Coordinates for equality.
Definition at line 64 of file coordinate.cpp.
KDE 4.2 API Reference