xmscore  1.0
xms::Pt3< T > Class Template Reference

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 Pt3operator= (const U &a)
 
template<class U >
const Pt3operator= (const Pt2< U > &a)
 
template<class U >
const Pt3operator= (const Pt3< U > &a)
 
template<class U >
const Pt3operator= (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)
 
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

x
 x coordinate
 
y
 y coordinate
 
z
 z coordinate
 

Detailed Description

template<class T>
class xms::Pt3< T >

3d point template class

2d point template

Definition at line 791 of file pt.h.

Constructor & Destructor Documentation

◆ Pt3() [1/8]

template<class T>
xms::Pt3< T >::Pt3 ( )
inline

default constructor

Definition at line 803 of file pt.h.

References xms::Pt2< T >::x, and xms::Pt2< T >::y.

◆ Pt3() [2/8]

template<class T>
xms::Pt3< T >::Pt3 ( a_x,
a_y,
a_z 
)
inline

constructor

Parameters
[in]a_xX value.
[in]a_yY value.
[in]a_zZ value.

Definition at line 813 of file pt.h.

◆ Pt3() [3/8]

template<class T>
xms::Pt3< T >::Pt3 ( a_x,
a_y 
)
inline

constructor. Z is set to 0.0.

Parameters
[in]a_xX value.
[in]a_yY value.

Definition at line 822 of file pt.h.

◆ Pt3() [4/8]

template<class T>
xms::Pt3< T >::Pt3 ( a)
inlineexplicit

constructor

Parameters
[in]aValue used for x, y and z.

Definition at line 830 of file pt.h.

◆ Pt3() [5/8]

template<class T>
xms::Pt3< T >::Pt3 ( const Pt3< T > &  a)
inline

copy constructor

Parameters
[in]aPoint to copy from.

Definition at line 840 of file pt.h.

◆ Pt3() [6/8]

template<class T>
template<class U >
xms::Pt3< T >::Pt3 ( const Pt2< U > &  a)
inlineexplicit

constructor. Z is set to 0

Parameters
aPt2.

Definition at line 851 of file pt.h.

◆ Pt3() [7/8]

template<class T>
template<class U >
xms::Pt3< T >::Pt3 ( const Pt3< U > &  a)
inlineexplicit

constructor.

Parameters
aPt3.

Definition at line 860 of file pt.h.

◆ Pt3() [8/8]

template<class T>
template<class U >
xms::Pt3< T >::Pt3 ( const Pt4< U > &  a)
inlineexplicit

constructor.

Parameters
aPt4.

Definition at line 869 of file pt.h.

Member Function Documentation

◆ at() [1/2]

template<class T>
const T& xms::Pt3< T >::at ( unsigned int  a) const
inline

at

Parameters
aindex: 0 = x, 1 = y, 2 = z
Returns
Value.

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().

◆ at() [2/2]

template<class T>
T& xms::Pt3< T >::at ( unsigned int  a)
inline

--— OVERLOAD --—

Parameters
aindex: 0 = x, 1 = y, 2 = z
Returns
Value.

Definition at line 1518 of file pt.h.

References xms::Pt3< T >::at().

◆ operator!=() [1/4]

template<class T>
template<class U >
bool xms::Pt3< T >::operator!= ( const U &  a) const
inline

operator!=

Parameters
[in]aA constant.
Returns
true if !=.

Definition at line 961 of file pt.h.

◆ operator!=() [2/4]

template<class T>
template<class U >
bool xms::Pt3< T >::operator!= ( const Pt2< U > &  a) const
inline

operator!=

Parameters
[in]aPt2.
Returns
true if !=.

Definition at line 969 of file pt.h.

◆ operator!=() [3/4]

template<class T>
template<class U >
bool xms::Pt3< T >::operator!= ( const Pt3< U > &  a) const
inline

operator!=

Parameters
[in]aPt3.
Returns
true if !=.

Definition at line 977 of file pt.h.

◆ operator!=() [4/4]

template<class T>
template<class U >
bool xms::Pt3< T >::operator!= ( const Pt4< U > &  a) const
inline

operator!=

Parameters
[in]aPt4.
Returns
true if !=.

Definition at line 985 of file pt.h.

◆ operator*() [1/4]

template<class T>
template<class U >
Pt3 xms::Pt3< T >::operator* ( const U &  a) const
inline

operator*

Parameters
[in]aA constant.
Returns
Pt3.

Definition at line 1262 of file pt.h.

◆ operator*() [2/4]

template<class T>
template<class U >
Pt3 xms::Pt3< T >::operator* ( const Pt2< U > &  a) const
inline

operator*

Parameters
[in]aPt2.
Returns
Pt3.

Definition at line 1270 of file pt.h.

◆ operator*() [3/4]

template<class T>
template<class U >
Pt3 xms::Pt3< T >::operator* ( const Pt3< U > &  a) const
inline

operator*

Parameters
[in]aPt3.
Returns
Pt3.

Definition at line 1278 of file pt.h.

◆ operator*() [4/4]

template<class T>
template<class U >
Pt3 xms::Pt3< T >::operator* ( const Pt4< U > &  a) const
inline

operator*

Parameters
[in]aPt4.
Returns
Pt3.

Definition at line 1286 of file pt.h.

◆ operator*=() [1/4]

template<class T>
template<class U >
void xms::Pt3< T >::operator*= ( const U &  a)
inline

operator*=

Parameters
[in]aA constant.

Definition at line 1399 of file pt.h.

◆ operator*=() [2/4]

template<class T>
template<class U >
void xms::Pt3< T >::operator*= ( const Pt2< U > &  a)
inline

operator*=

Parameters
[in]aPt2.

Definition at line 1408 of file pt.h.

References xms::Pt2< T >::x, and xms::Pt2< T >::y.

◆ operator*=() [3/4]

template<class T>
template<class U >
void xms::Pt3< T >::operator*= ( const Pt3< U > &  a)
inline

operator*=

Parameters
[in]aPt3.

Definition at line 1416 of file pt.h.

References xms::Pt3< T >::x, xms::Pt3< T >::y, and xms::Pt3< T >::z.

◆ operator*=() [4/4]

template<class T>
template<class U >
void xms::Pt3< T >::operator*= ( const Pt4< U > &  a)
inline

operator*=

Parameters
[in]aPt4.

Definition at line 1425 of file pt.h.

References xms::Pt4< T >::x, xms::Pt4< T >::y, and xms::Pt4< T >::z.

◆ operator+() [1/4]

template<class T>
template<class U >
Pt3 xms::Pt3< T >::operator+ ( const U &  a) const
inline

operator+

Parameters
[in]aA constant.
Returns
Pt3.

Definition at line 1189 of file pt.h.

◆ operator+() [2/4]

template<class T>
template<class U >
Pt3 xms::Pt3< T >::operator+ ( const Pt2< U > &  a) const
inline

operator+

Parameters
[in]aPt2.
Returns
Pt3.

Definition at line 1197 of file pt.h.

◆ operator+() [3/4]

template<class T>
template<class U >
Pt3 xms::Pt3< T >::operator+ ( const Pt3< U > &  a) const
inline

operator+

Parameters
[in]aPt3.
Returns
Pt3.

Definition at line 1205 of file pt.h.

◆ operator+() [4/4]

template<class T>
template<class U >
Pt3 xms::Pt3< T >::operator+ ( const Pt4< U > &  a) const
inline

operator+

Parameters
[in]aPt4.
Returns
Pt3.

Definition at line 1213 of file pt.h.

◆ operator+=() [1/4]

template<class T>
template<class U >
void xms::Pt3< T >::operator+= ( const U &  a)
inline

operator+=

Parameters
[in]aA constant.

Definition at line 1327 of file pt.h.

◆ operator+=() [2/4]

template<class T>
template<class U >
void xms::Pt3< T >::operator+= ( const Pt2< U > &  a)
inline

operator+=

Parameters
[in]aPt2.

Definition at line 1336 of file pt.h.

References xms::Pt2< T >::x, and xms::Pt2< T >::y.

◆ operator+=() [3/4]

template<class T>
template<class U >
void xms::Pt3< T >::operator+= ( const Pt3< U > &  a)
inline

operator+=

Parameters
[in]aPt3.

Definition at line 1344 of file pt.h.

References xms::Pt3< T >::x, xms::Pt3< T >::y, and xms::Pt3< T >::z.

◆ operator+=() [4/4]

template<class T>
template<class U >
void xms::Pt3< T >::operator+= ( const Pt4< U > &  a)
inline

operator+=

Parameters
[in]aPt4.

Definition at line 1353 of file pt.h.

References xms::Pt4< T >::x, xms::Pt4< T >::y, and xms::Pt4< T >::z.

◆ operator-() [1/5]

template<class T>
template<class U >
Pt3 xms::Pt3< T >::operator- ( const U &  a) const
inline

operator-

Parameters
[in]aA constant.
Returns
Pt3.

Definition at line 1222 of file pt.h.

◆ operator-() [2/5]

template<class T>
template<class U >
Pt3 xms::Pt3< T >::operator- ( const Pt2< U > &  a) const
inline

operator-

Parameters
[in]aPt2.
Returns
Pt3.

Definition at line 1230 of file pt.h.

◆ operator-() [3/5]

template<class T>
template<class U >
Pt3 xms::Pt3< T >::operator- ( const Pt3< U > &  a) const
inline

operator-

Parameters
[in]aPt3.
Returns
Pt3.

Definition at line 1238 of file pt.h.

◆ operator-() [4/5]

template<class T>
template<class U >
Pt3 xms::Pt3< T >::operator- ( const Pt4< U > &  a) const
inline

operator-

Parameters
[in]aPt4.
Returns
Pt3.

Definition at line 1246 of file pt.h.

◆ operator-() [5/5]

template<class T>
Pt3 xms::Pt3< T >::operator- ( ) const
inline

unary operator-

Returns
Pt3.

Definition at line 1253 of file pt.h.

◆ operator-=() [1/4]

template<class T>
template<class U >
void xms::Pt3< T >::operator-= ( const U &  a)
inline

operator-=

Parameters
[in]aA constant.

Definition at line 1363 of file pt.h.

◆ operator-=() [2/4]

template<class T>
template<class U >
void xms::Pt3< T >::operator-= ( const Pt2< U > &  a)
inline

operator-=

Parameters
[in]aPt2.

Definition at line 1372 of file pt.h.

References xms::Pt2< T >::x, and xms::Pt2< T >::y.

◆ operator-=() [3/4]

template<class T>
template<class U >
void xms::Pt3< T >::operator-= ( const Pt3< U > &  a)
inline

operator-=

Parameters
[in]aPt3.

Definition at line 1380 of file pt.h.

References xms::Pt3< T >::x, xms::Pt3< T >::y, and xms::Pt3< T >::z.

◆ operator-=() [4/4]

template<class T>
template<class U >
void xms::Pt3< T >::operator-= ( const Pt4< U > &  a)
inline

operator-=

Parameters
[in]aPt4.

Definition at line 1389 of file pt.h.

References xms::Pt4< T >::x, xms::Pt4< T >::y, and xms::Pt4< T >::z.

◆ operator/() [1/4]

template<class T>
template<class U >
Pt3 xms::Pt3< T >::operator/ ( const U &  a) const
inline

operator/

Parameters
[in]aPt3.
Returns
Pt3.

Definition at line 1295 of file pt.h.

◆ operator/() [2/4]

template<class T>
template<class U >
Pt3 xms::Pt3< T >::operator/ ( const Pt2< U > &  a) const
inline

operator/

Parameters
[in]aPt2.
Returns
Pt3.

Definition at line 1303 of file pt.h.

◆ operator/() [3/4]

template<class T>
template<class U >
Pt3 xms::Pt3< T >::operator/ ( const Pt3< U > &  a) const
inline

operator/

Parameters
[in]aPt3.
Returns
Pt3.

Definition at line 1311 of file pt.h.

◆ operator/() [4/4]

template<class T>
template<class U >
Pt3 xms::Pt3< T >::operator/ ( const Pt4< U > &  a) const
inline

operator/

Parameters
[in]aPt4.
Returns
Pt3.

Definition at line 1319 of file pt.h.

◆ operator/=() [1/4]

template<class T>
template<class U >
void xms::Pt3< T >::operator/= ( const U &  a)
inline

operator/=

Parameters
[in]aA constant.

Definition at line 1435 of file pt.h.

◆ operator/=() [2/4]

template<class T>
template<class U >
void xms::Pt3< T >::operator/= ( const Pt2< U > &  a)
inline

operator/=

Parameters
[in]aPt2.

Definition at line 1444 of file pt.h.

References xms::Pt2< T >::x, and xms::Pt2< T >::y.

◆ operator/=() [3/4]

template<class T>
template<class U >
void xms::Pt3< T >::operator/= ( const Pt3< U > &  a)
inline

operator/=

Parameters
[in]aPt3.

Definition at line 1452 of file pt.h.

References xms::Pt3< T >::x, xms::Pt3< T >::y, and xms::Pt3< T >::z.

◆ operator/=() [4/4]

template<class T>
template<class U >
void xms::Pt3< T >::operator/= ( const Pt4< U > &  a)
inline

operator/=

Parameters
[in]aPt4.

Definition at line 1461 of file pt.h.

References xms::Pt4< T >::x, xms::Pt4< T >::y, and xms::Pt4< T >::z.

◆ operator<() [1/4]

template<class T>
template<class U >
bool xms::Pt3< T >::operator< ( const U &  a) const
inline

operator<

Parameters
[in]aA constant.
Returns
true if <.

Definition at line 994 of file pt.h.

◆ operator<() [2/4]

template<class T>
template<class U >
bool xms::Pt3< T >::operator< ( const Pt2< U > &  a) const
inline

operator<

Parameters
[in]aPt2.
Returns
true if <.

Definition at line 1019 of file pt.h.

◆ operator<() [3/4]

template<class T>
template<class U >
bool xms::Pt3< T >::operator< ( const Pt3< U > &  a) const
inline

operator<

Parameters
[in]aPt3.
Returns
true if <.

Definition at line 1037 of file pt.h.

◆ operator<() [4/4]

template<class T>
template<class U >
bool xms::Pt3< T >::operator< ( const Pt4< U > &  a) const
inline

operator<

Parameters
[in]aPt4.
Returns
true if <.

Definition at line 1062 of file pt.h.

◆ operator<=() [1/4]

template<class T>
template<class U >
bool xms::Pt3< T >::operator<= ( const U &  a) const
inline

operator<=

Parameters
[in]aA constant.
Returns
true if <=.

Definition at line 1088 of file pt.h.

◆ operator<=() [2/4]

template<class T>
template<class U >
bool xms::Pt3< T >::operator<= ( const Pt2< U > &  a) const
inline

operator<=

Parameters
[in]aPt2.
Returns
true if <=.

Definition at line 1096 of file pt.h.

◆ operator<=() [3/4]

template<class T>
template<class U >
bool xms::Pt3< T >::operator<= ( const Pt3< U > &  a) const
inline

operator<=

Parameters
[in]aPt3.
Returns
true if <=.

Definition at line 1104 of file pt.h.

◆ operator<=() [4/4]

template<class T>
template<class U >
bool xms::Pt3< T >::operator<= ( const Pt4< U > &  a) const
inline

operator<=

Parameters
[in]aPt4.
Returns
true if <=.

Definition at line 1112 of file pt.h.

◆ operator=() [1/4]

template<class T>
template<class U >
const Pt3& xms::Pt3< T >::operator= ( const U &  a)
inline

operator= (Assignment operator)

Parameters
[in]aA constant.
Returns
Pt3 reference.

Definition at line 882 of file pt.h.

◆ operator=() [2/4]

template<class T>
template<class U >
const Pt3& xms::Pt3< T >::operator= ( const Pt2< U > &  a)
inline

operator= (Assignment operator)

Parameters
[in]aPt2.
Returns
Pt3 reference.

Definition at line 893 of file pt.h.

References xms::Pt2< T >::x, and xms::Pt2< T >::y.

◆ operator=() [3/4]

template<class T>
template<class U >
const Pt3& xms::Pt3< T >::operator= ( const Pt3< U > &  a)
inline

operator= (Assignment operator)

Parameters
[in]aPt3.
Returns
Pt3 reference.

Definition at line 903 of file pt.h.

References xms::Pt3< T >::x, xms::Pt3< T >::y, and xms::Pt3< T >::z.

◆ operator=() [4/4]

template<class T>
template<class U >
const Pt3& xms::Pt3< T >::operator= ( const Pt4< U > &  a)
inline

operator= (Assignment operator)

Parameters
[in]aPt4.
Returns
Pt3 reference.

Definition at line 914 of file pt.h.

References xms::Pt4< T >::x, xms::Pt4< T >::y, and xms::Pt4< T >::z.

◆ operator==() [1/4]

template<class T>
template<class U >
bool xms::Pt3< T >::operator== ( const U &  a) const
inline

operator==

Parameters
[in]aA constant.
Returns
true if ==.

Definition at line 928 of file pt.h.

◆ operator==() [2/4]

template<class T>
template<class U >
bool xms::Pt3< T >::operator== ( const Pt2< U > &  a) const
inline

operator==

Parameters
[in]aPt2.
Returns
true if ==.

Definition at line 936 of file pt.h.

References xms::Pt2< T >::x, and xms::Pt2< T >::y.

◆ operator==() [3/4]

template<class T>
template<class U >
bool xms::Pt3< T >::operator== ( const Pt3< U > &  a) const
inline

operator==

Parameters
[in]aPt3.
Returns
true if ==.

Definition at line 944 of file pt.h.

References xms::Pt3< T >::x, xms::Pt3< T >::y, and xms::Pt3< T >::z.

◆ operator==() [4/4]

template<class T>
template<class U >
bool xms::Pt3< T >::operator== ( const Pt4< U > &  a) const
inline

operator==

Parameters
[in]aPt4.
Returns
true if ==.

Definition at line 952 of file pt.h.

References xms::Pt4< T >::x, xms::Pt4< T >::y, and xms::Pt4< T >::z.

◆ operator>() [1/4]

template<class T>
template<class U >
bool xms::Pt3< T >::operator> ( const U &  a) const
inline

operator>

Parameters
[in]aA constant.
Returns
true if >.

Definition at line 1121 of file pt.h.

◆ operator>() [2/4]

template<class T>
template<class U >
bool xms::Pt3< T >::operator> ( const Pt2< U > &  a) const
inline

operator>

Parameters
[in]aPt2.
Returns
true if >.

Definition at line 1129 of file pt.h.

◆ operator>() [3/4]

template<class T>
template<class U >
bool xms::Pt3< T >::operator> ( const Pt3< U > &  a) const
inline

operator>

Parameters
[in]aPt3.
Returns
true if >.

Definition at line 1137 of file pt.h.

◆ operator>() [4/4]

template<class T>
template<class U >
bool xms::Pt3< T >::operator> ( const Pt4< U > &  a) const
inline

operator>

Parameters
[in]aPt4.
Returns
true if >.

Definition at line 1145 of file pt.h.

◆ operator>=() [1/4]

template<class T>
template<class U >
bool xms::Pt3< T >::operator>= ( const U &  a) const
inline

operator>=

Parameters
[in]aA constant.
Returns
true if >=.

Definition at line 1154 of file pt.h.

◆ operator>=() [2/4]

template<class T>
template<class U >
bool xms::Pt3< T >::operator>= ( const Pt2< U > &  a) const
inline

operator>=

Parameters
[in]aPt2.
Returns
true if >=.

Definition at line 1162 of file pt.h.

◆ operator>=() [3/4]

template<class T>
template<class U >
bool xms::Pt3< T >::operator>= ( const Pt3< U > &  a) const
inline

operator>=

Parameters
[in]aPt3.
Returns
true if >=.

Definition at line 1170 of file pt.h.

◆ operator>=() [4/4]

template<class T>
template<class U >
bool xms::Pt3< T >::operator>= ( const Pt4< U > &  a) const
inline

operator>=

Parameters
[in]aPt4.
Returns
true if >=.

Definition at line 1178 of file pt.h.

◆ operator[]() [1/2]

template<class T>
T xms::Pt3< T >::operator[] ( unsigned int  a) const
inline

operator[]

Parameters
aindex: 0 = x, 1 = y, 2 = z
Returns
Value.

Definition at line 1492 of file pt.h.

◆ operator[]() [2/2]

template<class T>
T& xms::Pt3< T >::operator[] ( unsigned int  a)
inline

operator[]

Parameters
aindex: 0 = x, 1 = y, 2 = z
Returns
Value.

Definition at line 1496 of file pt.h.

◆ serialize()

template<class T>
template<typename Archive >
void xms::Pt3< T >::serialize ( Archive &  archive,
const unsigned int  version 
)
inline

For serialization.

Parameters
archiveThe archive.
versionThe version.

Definition at line 1532 of file pt.h.

References xms::Pt2< T >::x, and xms::Pt2< T >::y.

◆ Set() [1/2]

template<class T>
void xms::Pt3< T >::Set ( a_x,
a_y,
a_z 
)
inline

Setter

Parameters
a_xx.
a_yy.
a_zz.

Definition at line 1474 of file pt.h.

Referenced by PtUnitTests::testIt().

◆ Set() [2/2]

template<class T>
void xms::Pt3< T >::Set ( a)
inline

Setter

Parameters
aValue to use for x, y and z.

Definition at line 1482 of file pt.h.


The documentation for this class was generated from the following file: