Tuple Class Reference
#include <Tuple.h>
List of all members.
Public Member Functions |
| Tuple (double a, double b) |
| Tuple () |
| ~Tuple () |
bool | operator== (const Tuple &rhs) const |
bool | operator!= (const Tuple &rhs) const |
bool | operator< (const Tuple &rhs) const |
bool | operator> (const Tuple &rhs) const |
Tuple | operator+ (const Tuple &rhs) const |
Tuple | operator- (const Tuple &rhs) const |
Tuple | operator* (double d) const |
double | operator* (const Tuple &rhs) const |
double | operator[] (int i) const |
int | cmp (const Tuple &x) const |
double | distance_squared (const Tuple &p) const |
double | distance (const Tuple &p) const |
double | angle (const Tuple &a, const Tuple &b) const |
void | angleCheck (const Tuple &a, const Tuple &b, bool &ob, bool &sm, double M) const |
void | print (std::ostream &os) const |
| Tuple (double x, double y, long id) |
| Tuple () |
| ~Tuple () |
double | x () const |
double | y () const |
long | id () const |
bool | operator== (const Tuple &rhs) const |
bool | operator!= (const Tuple &rhs) const |
void | print (std::ostream &os) const |
Static Public Member Functions |
static int | cmp (Tuple a, Tuple b) |
static double | distance (Tuple a, Tuple b) |
static double | angle (const Tuple &a, const Tuple &b, const Tuple &c) |
static void | angleCheck (const Tuple &a, const Tuple &b, const Tuple &c, bool &ob, bool &sm, double M) |
Private Attributes |
double | _t [2] |
long | _id |
Constructor & Destructor Documentation
Tuple::Tuple |
( |
double |
a, |
|
|
double |
b | |
|
) |
| | [inline] |
Tuple::Tuple |
( |
|
) |
[inline] |
Tuple::~Tuple |
( |
|
) |
[inline] |
Tuple::Tuple |
( |
double |
x, |
|
|
double |
y, |
|
|
long |
id | |
|
) |
| | [inline] |
Tuple::Tuple |
( |
|
) |
[inline] |
Tuple::~Tuple |
( |
|
) |
[inline] |
Member Function Documentation
static double Tuple::angle |
( |
const Tuple & |
a, |
|
|
const Tuple & |
b, |
|
|
const Tuple & |
c | |
|
) |
| | [inline, static] |
double Tuple::angle |
( |
const Tuple & |
a, |
|
|
const Tuple & |
b | |
|
) |
| | const [inline] |
static void Tuple::angleCheck |
( |
const Tuple & |
a, |
|
|
const Tuple & |
b, |
|
|
const Tuple & |
c, |
|
|
bool & |
ob, |
|
|
bool & |
sm, |
|
|
double |
M | |
|
) |
| | [inline, static] |
void Tuple::angleCheck |
( |
const Tuple & |
a, |
|
|
const Tuple & |
b, |
|
|
bool & |
ob, |
|
|
bool & |
sm, |
|
|
double |
M | |
|
) |
| | const [inline] |
static int Tuple::cmp |
( |
Tuple |
a, |
|
|
Tuple |
b | |
|
) |
| | [inline, static] |
int Tuple::cmp |
( |
const Tuple & |
x |
) |
const [inline] |
static double Tuple::distance |
( |
Tuple |
a, |
|
|
Tuple |
b | |
|
) |
| | [inline, static] |
double Tuple::distance |
( |
const Tuple & |
p |
) |
const [inline] |
double Tuple::distance_squared |
( |
const Tuple & |
p |
) |
const [inline] |
long Tuple::id |
( |
|
) |
const [inline] |
bool Tuple::operator!= |
( |
const Tuple & |
rhs |
) |
const [inline] |
bool Tuple::operator!= |
( |
const Tuple & |
rhs |
) |
const [inline] |
double Tuple::operator* |
( |
const Tuple & |
rhs |
) |
const [inline] |
Tuple Tuple::operator* |
( |
double |
d |
) |
const [inline] |
Tuple Tuple::operator+ |
( |
const Tuple & |
rhs |
) |
const [inline] |
Tuple Tuple::operator- |
( |
const Tuple & |
rhs |
) |
const [inline] |
bool Tuple::operator< |
( |
const Tuple & |
rhs |
) |
const [inline] |
bool Tuple::operator== |
( |
const Tuple & |
rhs |
) |
const [inline] |
bool Tuple::operator== |
( |
const Tuple & |
rhs |
) |
const [inline] |
bool Tuple::operator> |
( |
const Tuple & |
rhs |
) |
const [inline] |
double Tuple::operator[] |
( |
int |
i |
) |
const [inline] |
void Tuple::print |
( |
std::ostream & |
os |
) |
const [inline] |
void Tuple::print |
( |
std::ostream & |
os |
) |
const [inline] |
double Tuple::x |
( |
|
) |
const [inline] |
double Tuple::y |
( |
|
) |
const [inline] |
Member Data Documentation
The documentation for this class was generated from the following files: