|
xmscore
1.0
|
3d point template class More...
#include <pt.h>
Public Types | |
| typedef T | value_type |
| value_type | |
Public Member Functions | |
| Pt3 () | |
| Pt3 (T a_x, T a_y, T a_z) | |
| constructor More... | |
| Pt3 (T a_x, T a_y) | |
| constructor. Z is set to 0.0. More... | |
| Pt3 (T a) | |
| constructor More... | |
| Pt3 (const Pt3 &a) | |
| template<class U > | |
| Pt3 (const Pt2< U > &a) | |
| constructor. Z is set to 0 More... | |
| template<class U > | |
| Pt3 (const Pt3< U > &a) | |
| constructor. More... | |
| template<class U > | |
| Pt3 (const Pt4< U > &a) | |
| constructor. More... | |
| ~Pt3 () | |
| destructor. can't be virtual | |
| template<class U > | |
| const Pt3 & | operator= (const U &a) |
| template<class U > | |
| const Pt3 & | operator= (const Pt2< U > &a) |
| template<class U > | |
| const Pt3 & | operator= (const Pt3< U > &a) |
| template<class U > | |
| const Pt3 & | 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 > | |
| Pt3 | operator+ (const U &a) const |
| template<class U > | |
| Pt3 | operator+ (const Pt2< U > &a) const |
| template<class U > | |
| Pt3 | operator+ (const Pt3< U > &a) const |
| template<class U > | |
| Pt3 | operator+ (const Pt4< U > &a) const |
| template<class U > | |
| Pt3 | operator- (const U &a) const |
| template<class U > | |
| Pt3 | operator- (const Pt2< U > &a) const |
| template<class U > | |
| Pt3 | operator- (const Pt3< U > &a) const |
| template<class U > | |
| Pt3 | operator- (const Pt4< U > &a) const |
| Pt3 | operator- () const |
| template<class U > | |
| Pt3 | operator* (const U &a) const |
| template<class U > | |
| Pt3 | operator* (const Pt2< U > &a) const |
| template<class U > | |
| Pt3 | operator* (const Pt3< U > &a) const |
| template<class U > | |
| Pt3 | operator* (const Pt4< U > &a) const |
| template<class U > | |
| Pt3 | operator/ (const U &a) const |
| template<class U > | |
| Pt3 | operator/ (const Pt2< U > &a) const |
| template<class U > | |
| Pt3 | operator/ (const Pt3< U > &a) const |
| template<class U > | |
| Pt3 | 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, T a_z) |
| 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 | |
| T | z |
| z coordinate | |
3d point template class
2d point template
default constructor
Definition at line 803 of file pt.h.
References xms::Pt2< T >::x, and xms::Pt2< T >::y.
|
inline |
at
| a | index: 0 = x, 1 = y, 2 = z |
Definition at line 1501 of file pt.h.
References xms::Pt2< T >::x, and xms::Pt2< T >::y.
Referenced by xms::Pt3< T >::at(), and PtUnitTests::testIt().
|
inline |
--— OVERLOAD --—
| a | index: 0 = x, 1 = y, 2 = z |
Definition at line 1518 of file pt.h.
References xms::Pt3< T >::at().
operator*=
| [in] | a | Pt2. |
Definition at line 1408 of file pt.h.
References xms::Pt2< T >::x, and xms::Pt2< T >::y.
operator*=
| [in] | a | Pt3. |
Definition at line 1416 of file pt.h.
References xms::Pt3< T >::x, xms::Pt3< T >::y, and xms::Pt3< T >::z.
operator*=
| [in] | a | Pt4. |
Definition at line 1425 of file pt.h.
References xms::Pt4< T >::x, xms::Pt4< T >::y, and xms::Pt4< T >::z.
operator+=
| [in] | a | Pt2. |
Definition at line 1336 of file pt.h.
References xms::Pt2< T >::x, and xms::Pt2< T >::y.
operator+=
| [in] | a | Pt3. |
Definition at line 1344 of file pt.h.
References xms::Pt3< T >::x, xms::Pt3< T >::y, and xms::Pt3< T >::z.
operator+=
| [in] | a | Pt4. |
Definition at line 1353 of file pt.h.
References xms::Pt4< T >::x, xms::Pt4< T >::y, and xms::Pt4< T >::z.
operator-=
| [in] | a | Pt2. |
Definition at line 1372 of file pt.h.
References xms::Pt2< T >::x, and xms::Pt2< T >::y.
operator-=
| [in] | a | Pt3. |
Definition at line 1380 of file pt.h.
References xms::Pt3< T >::x, xms::Pt3< T >::y, and xms::Pt3< T >::z.
operator-=
| [in] | a | Pt4. |
Definition at line 1389 of file pt.h.
References xms::Pt4< T >::x, xms::Pt4< T >::y, and xms::Pt4< T >::z.
operator/=
| [in] | a | Pt2. |
Definition at line 1444 of file pt.h.
References xms::Pt2< T >::x, and xms::Pt2< T >::y.
operator/=
| [in] | a | Pt3. |
Definition at line 1452 of file pt.h.
References xms::Pt3< T >::x, xms::Pt3< T >::y, and xms::Pt3< T >::z.
operator/=
| [in] | a | Pt4. |
Definition at line 1461 of file pt.h.
References xms::Pt4< T >::x, xms::Pt4< T >::y, and xms::Pt4< T >::z.
|
inline |
operator= (Assignment operator)
| [in] | a | Pt2. |
Definition at line 893 of file pt.h.
References xms::Pt2< T >::x, and xms::Pt2< T >::y.
|
inline |
operator= (Assignment operator)
| [in] | a | Pt3. |
Definition at line 903 of file pt.h.
References xms::Pt3< T >::x, xms::Pt3< T >::y, and xms::Pt3< T >::z.
|
inline |
operator= (Assignment operator)
| [in] | a | Pt4. |
Definition at line 914 of file pt.h.
References xms::Pt4< T >::x, xms::Pt4< T >::y, and xms::Pt4< T >::z.
|
inline |
operator==
| [in] | a | Pt2. |
Definition at line 936 of file pt.h.
References xms::Pt2< T >::x, and xms::Pt2< T >::y.
|
inline |
operator==
| [in] | a | Pt3. |
Definition at line 944 of file pt.h.
References xms::Pt3< T >::x, xms::Pt3< T >::y, and xms::Pt3< T >::z.
|
inline |
operator==
| [in] | a | Pt4. |
Definition at line 952 of file pt.h.
References xms::Pt4< T >::x, xms::Pt4< T >::y, and xms::Pt4< T >::z.
|
inline |
|
inline |
|
inline |
For serialization.
| archive | The archive. |
| version | The version. |
Definition at line 1532 of file pt.h.
References xms::Pt2< T >::x, and xms::Pt2< T >::y.
|
inline |
Setter
| a_x | x. |
| a_y | y. |
| a_z | z. |
Definition at line 1474 of file pt.h.
Referenced by PtUnitTests::testIt().
|
inline |