xmscore
1.0
|
2D Point template class More...
#include <pt.h>
Public Member Functions | |
Pt2 () | |
Pt2 (T a_x, T a_y) | |
constructor More... | |
Pt2 (const T &a) | |
constructor More... | |
Pt2 (const Pt2 &a) | |
copy construcor More... | |
template<class U > | |
Pt2 (const Pt2< U > &a) | |
constructor. More... | |
template<class U > | |
Pt2 (const Pt3< U > &a) | |
constructor. More... | |
template<class U > | |
Pt2 (const Pt4< U > &a) | |
constructor. More... | |
~Pt2 () | |
destructor. can't be virtual | |
template<class U > | |
const Pt2 & | operator= (const U &a) |
template<class U > | |
const Pt2 & | operator= (const Pt2< U > &a) |
template<class U > | |
const Pt2 & | operator= (const Pt3< U > &a) |
template<class U > | |
const Pt2 & | operator= (const Pt4< U > &a) |
template<class U > | |
bool | operator== (const U &a) const |
template<class U > | |
bool | operator== (const Pt2< U > &a) const |
template<class U > | |
bool | operator== (const Pt3< U > &a) const |
template<class U > | |
bool | operator== (const Pt4< U > &a) const |
template<class U > | |
bool | operator!= (const U &a) const |
template<class U > | |
bool | operator!= (const Pt2< U > &a) const |
template<class U > | |
bool | operator!= (const Pt3< U > &a) const |
template<class U > | |
bool | operator!= (const Pt4< U > &a) const |
template<class U > | |
bool | operator< (const U &a) const |
template<class U > | |
bool | operator< (const Pt2< U > &a) const |
template<class U > | |
bool | operator< (const Pt3< U > &a) const |
template<class U > | |
bool | operator< (const Pt4< U > &a) const |
template<class U > | |
bool | operator<= (const U &a) const |
template<class U > | |
bool | operator<= (const Pt2< U > &a) const |
template<class U > | |
bool | operator<= (const Pt3< U > &a) const |
template<class U > | |
bool | operator<= (const Pt4< U > &a) const |
template<class U > | |
bool | operator> (const U &a) const |
template<class U > | |
bool | operator> (const Pt2< U > &a) const |
template<class U > | |
bool | operator> (const Pt3< U > &a) const |
template<class U > | |
bool | operator> (const Pt4< U > &a) const |
template<class U > | |
bool | operator>= (const U &a) const |
template<class U > | |
bool | operator>= (const Pt2< U > &a) const |
template<class U > | |
bool | operator>= (const Pt3< U > &a) const |
template<class U > | |
bool | operator>= (const Pt4< U > &a) const |
template<class U > | |
Pt2 | operator+ (const U &a) const |
template<class U > | |
Pt2 | operator+ (const Pt2< U > &a) const |
template<class U > | |
Pt2 | operator+ (const Pt3< U > &a) const |
template<class U > | |
Pt2 | operator+ (const Pt4< U > &a) const |
template<class U > | |
Pt2 | operator- (const U &a) const |
template<class U > | |
Pt2 | operator- (const Pt2< U > &a) const |
template<class U > | |
Pt2 | operator- (const Pt3< U > &a) const |
template<class U > | |
Pt2 | operator- (const Pt4< U > &a) const |
Pt2 | operator- () const |
template<class U > | |
Pt2 | operator* (const U &a) const |
template<class U > | |
Pt2 | operator* (const Pt2< U > &a) const |
template<class U > | |
Pt2 | operator* (const Pt3< U > &a) const |
template<class U > | |
Pt2 | operator* (const Pt4< U > &a) const |
template<class U > | |
Pt2 | operator/ (const U &a) const |
template<class U > | |
Pt2 | operator/ (const Pt2< U > &a) const |
template<class U > | |
Pt2 | operator/ (const Pt3< U > &a) const |
template<class U > | |
Pt2 | operator/ (const Pt4< U > &a) const |
template<class U > | |
void | operator+= (const U &a) |
template<class U > | |
void | operator+= (const Pt2< U > &a) |
template<class U > | |
void | operator+= (const Pt3< U > &a) |
template<class U > | |
void | operator+= (const Pt4< U > &a) |
template<class U > | |
void | operator-= (const U &a) |
template<class U > | |
void | operator-= (const Pt2< U > &a) |
template<class U > | |
void | operator-= (const Pt3< U > &a) |
template<class U > | |
void | operator-= (const Pt4< U > &a) |
template<class U > | |
void | operator*= (const U &a) |
template<class U > | |
void | operator*= (const Pt2< U > &a) |
template<class U > | |
void | operator*= (const Pt3< U > &a) |
template<class U > | |
void | operator*= (const Pt4< U > &a) |
template<class U > | |
void | operator/= (const U &a) |
template<class U > | |
void | operator/= (const Pt2< U > &a) |
template<class U > | |
void | operator/= (const Pt3< U > &a) |
template<class U > | |
void | operator/= (const Pt4< U > &a) |
void | Set (T a_x, T a_y) |
void | Set (T a) |
T | operator[] (unsigned int a) const |
T & | operator[] (unsigned int a) |
const T & | at (unsigned int a) const |
T & | at (unsigned int a) |
template<typename Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
For serialization. More... | |
Public Attributes | |
T | x |
x coordinate | |
T | y |
y coordinate | |
default constructor
Definition at line 93 of file pt.h.
References xms::Pt2< T >::x, and xms::Pt2< T >::y.
Referenced by xms::Pt2< T >::operator*(), xms::Pt2< T >::operator+(), xms::Pt2< T >::operator-(), and xms::Pt2< T >::operator/().
|
inline |
at
a | index: 0 = x, 1 = y |
Definition at line 753 of file pt.h.
References xms::Pt2< T >::x, and xms::Pt2< T >::y.
Referenced by xms::Pt2< T >::at(), xms::ttAssertDeltaVecPt2d(), and xms::ttAssertDeltaVecPt3d().
|
inline |
OVERLOAD
a | index: 0 = x, 1 = y |
Definition at line 768 of file pt.h.
References xms::Pt2< T >::at().
operator*
[in] | a | A constant. |
Definition at line 513 of file pt.h.
References xms::Pt2< T >::Pt2().
|
inline |
operator*
[in] | a | Pt2. |
Definition at line 521 of file pt.h.
References xms::Pt2< T >::Pt2().
|
inline |
operator*
[in] | a | Pt3. |
Definition at line 529 of file pt.h.
References xms::Pt2< T >::Pt2().
|
inline |
operator*
[in] | a | Pt4. |
Definition at line 537 of file pt.h.
References xms::Pt2< T >::Pt2().
operator*=
[in] | a | Pt2. |
Definition at line 662 of file pt.h.
References xms::Pt2< T >::x, and xms::Pt2< T >::y.
operator*=
[in] | a | Pt3. |
Definition at line 671 of file pt.h.
References xms::Pt3< T >::x, and xms::Pt3< T >::y.
operator*=
[in] | a | Pt4. |
Definition at line 680 of file pt.h.
References xms::Pt4< T >::x, and xms::Pt4< T >::y.
operator+
[in] | a | A constant. |
Definition at line 440 of file pt.h.
References xms::Pt2< T >::Pt2().
|
inline |
operator+
[in] | a | Pt2. |
Definition at line 448 of file pt.h.
References xms::Pt2< T >::Pt2().
|
inline |
operator+
[in] | a | Pt3. |
Definition at line 456 of file pt.h.
References xms::Pt2< T >::Pt2().
|
inline |
operator+
[in] | a | Pt4. |
Definition at line 464 of file pt.h.
References xms::Pt2< T >::Pt2().
operator+=
[in] | a | Pt2. |
Definition at line 588 of file pt.h.
References xms::Pt2< T >::x, and xms::Pt2< T >::y.
operator+=
[in] | a | Pt3. |
Definition at line 597 of file pt.h.
References xms::Pt3< T >::x, and xms::Pt3< T >::y.
operator+=
[in] | a | Pt4. |
Definition at line 606 of file pt.h.
References xms::Pt4< T >::x, and xms::Pt4< T >::y.
operator-
[in] | a | A constant. |
Definition at line 473 of file pt.h.
References xms::Pt2< T >::Pt2().
|
inline |
operator-
[in] | a | Pt2. |
Definition at line 481 of file pt.h.
References xms::Pt2< T >::Pt2().
|
inline |
operator-
[in] | a | Pt3. |
Definition at line 489 of file pt.h.
References xms::Pt2< T >::Pt2().
|
inline |
operator-
[in] | a | Pt4. |
Definition at line 497 of file pt.h.
References xms::Pt2< T >::Pt2().
operator-=
[in] | a | Pt2. |
Definition at line 625 of file pt.h.
References xms::Pt2< T >::x, and xms::Pt2< T >::y.
operator-=
[in] | a | Pt3. |
Definition at line 634 of file pt.h.
References xms::Pt3< T >::x, and xms::Pt3< T >::y.
operator-=
[in] | a | Pt4. |
Definition at line 643 of file pt.h.
References xms::Pt4< T >::x, and xms::Pt4< T >::y.
operator/
[in] | a | A constant. |
Definition at line 546 of file pt.h.
References xms::Pt2< T >::Pt2().
|
inline |
operator/
[in] | a | Pt2. |
Definition at line 554 of file pt.h.
References xms::Pt2< T >::Pt2().
|
inline |
operator/
[in] | a | Pt3. |
Definition at line 562 of file pt.h.
References xms::Pt2< T >::Pt2().
|
inline |
operator/
[in] | a | Pt4. |
Definition at line 570 of file pt.h.
References xms::Pt2< T >::Pt2().
operator/=
[in] | a | Pt2. |
Definition at line 699 of file pt.h.
References xms::Pt2< T >::x, and xms::Pt2< T >::y.
operator/=
[in] | a | Pt3. |
Definition at line 708 of file pt.h.
References xms::Pt3< T >::x, and xms::Pt3< T >::y.
operator/=
[in] | a | Pt4. |
Definition at line 717 of file pt.h.
References xms::Pt4< T >::x, and xms::Pt4< T >::y.
|
inline |
operator= (Assignment operator)
[in] | a | Pt2. |
Definition at line 167 of file pt.h.
References xms::Pt2< T >::x, and xms::Pt2< T >::y.
|
inline |
operator= (Assignment operator)
[in] | a | Pt3. |
Definition at line 177 of file pt.h.
References xms::Pt3< T >::x, and xms::Pt3< T >::y.
|
inline |
operator= (Assignment operator)
[in] | a | Pt4. |
Definition at line 187 of file pt.h.
References xms::Pt4< T >::x, and xms::Pt4< T >::y.
|
inline |
operator==
[in] | a | Pt2. |
Definition at line 208 of file pt.h.
References xms::Pt2< T >::x, and xms::Pt2< T >::y.
|
inline |
operator==
[in] | a | Pt3. |
Definition at line 216 of file pt.h.
References xms::Pt3< T >::x, and xms::Pt3< T >::y.
|
inline |
operator==
[in] | a | Pt4. |
Definition at line 224 of file pt.h.
References xms::Pt4< T >::x, and xms::Pt4< T >::y.
|
inline |
|
inline |
|
inline |
For serialization.
archive | The archive. |
version | The version. |
Definition at line 778 of file pt.h.
References xms::Pt2< T >::x, and xms::Pt2< T >::y.
|
inline |
|
inline |