kig
#include "coordinate.h"
#include <qglobal.h>
#include <cmath>
#include <kdebug.h>
#include "common.h"
Go to the source code of this file.
Functions | |
bool | operator!= (const Coordinate &a, const Coordinate &b) |
const Coordinate | operator* (const Coordinate &a, double r) |
const Coordinate | operator* (double r, const Coordinate &a) |
double | 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
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, |
double | r | ||
) |
Returns this a, scaled by a factor of r.
Definition at line 49 of file coordinate.cpp.
const Coordinate operator* | ( | double | r, |
const Coordinate & | a | ||
) |
Definition at line 54 of file coordinate.cpp.
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+ | ( | 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.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.