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

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

Detailed Description

template<class T>
class xms::Pt2< T >

2D Point template class

Definition at line 82 of file pt.h.

Constructor & Destructor Documentation

◆ Pt2() [1/7]

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

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

◆ Pt2() [2/7]

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

constructor

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

Definition at line 101 of file pt.h.

◆ Pt2() [3/7]

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

constructor

Parameters
[in]aValue used for x and y.

Definition at line 108 of file pt.h.

◆ Pt2() [4/7]

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

copy construcor

Parameters
[in]aPoint to copy from.

Definition at line 117 of file pt.h.

◆ Pt2() [5/7]

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

constructor.

Parameters
aPt2.

Definition at line 127 of file pt.h.

◆ Pt2() [6/7]

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

constructor.

Parameters
aPt3.

Definition at line 135 of file pt.h.

◆ Pt2() [7/7]

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

constructor.

Parameters
aPt4.

Definition at line 143 of file pt.h.

Member Function Documentation

◆ at() [1/2]

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

at

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

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

◆ at() [2/2]

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

OVERLOAD

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

Definition at line 768 of file pt.h.

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

◆ operator!=() [1/4]

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

operator!=

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

Definition at line 233 of file pt.h.

◆ operator!=() [2/4]

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

operator!=

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

Definition at line 241 of file pt.h.

◆ operator!=() [3/4]

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

operator!=

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

Definition at line 249 of file pt.h.

◆ operator!=() [4/4]

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

operator!=

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

Definition at line 257 of file pt.h.

◆ operator*() [1/4]

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

operator*

Parameters
[in]aA constant.
Returns
Pt2.

Definition at line 513 of file pt.h.

References xms::Pt2< T >::Pt2().

◆ operator*() [2/4]

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

operator*

Parameters
[in]aPt2.
Returns
Pt2.

Definition at line 521 of file pt.h.

References xms::Pt2< T >::Pt2().

◆ operator*() [3/4]

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

operator*

Parameters
[in]aPt3.
Returns
Pt2.

Definition at line 529 of file pt.h.

References xms::Pt2< T >::Pt2().

◆ operator*() [4/4]

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

operator*

Parameters
[in]aPt4.
Returns
Pt2.

Definition at line 537 of file pt.h.

References xms::Pt2< T >::Pt2().

◆ operator*=() [1/4]

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

operator*=

Parameters
[in]aA constant.
Returns
Pt2.

Definition at line 653 of file pt.h.

◆ operator*=() [2/4]

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

operator*=

Parameters
[in]aPt2.
Returns
Pt2.

Definition at line 662 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::Pt2< T >::operator*= ( const Pt3< U > &  a)
inline

operator*=

Parameters
[in]aPt3.
Returns
Pt2.

Definition at line 671 of file pt.h.

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

◆ operator*=() [4/4]

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

operator*=

Parameters
[in]aPt4.
Returns
Pt2.

Definition at line 680 of file pt.h.

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

◆ operator+() [1/4]

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

operator+

Parameters
[in]aA constant.
Returns
Pt2.

Definition at line 440 of file pt.h.

References xms::Pt2< T >::Pt2().

◆ operator+() [2/4]

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

operator+

Parameters
[in]aPt2.
Returns
Pt2.

Definition at line 448 of file pt.h.

References xms::Pt2< T >::Pt2().

◆ operator+() [3/4]

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

operator+

Parameters
[in]aPt3.
Returns
Pt2.

Definition at line 456 of file pt.h.

References xms::Pt2< T >::Pt2().

◆ operator+() [4/4]

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

operator+

Parameters
[in]aPt4.
Returns
Pt2.

Definition at line 464 of file pt.h.

References xms::Pt2< T >::Pt2().

◆ operator+=() [1/4]

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

operator+=

Parameters
[in]aA constant.
Returns
Pt2.

Definition at line 579 of file pt.h.

◆ operator+=() [2/4]

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

operator+=

Parameters
[in]aPt2.
Returns
Pt2.

Definition at line 588 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::Pt2< T >::operator+= ( const Pt3< U > &  a)
inline

operator+=

Parameters
[in]aPt3.
Returns
Pt2.

Definition at line 597 of file pt.h.

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

◆ operator+=() [4/4]

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

operator+=

Parameters
[in]aPt4.
Returns
Pt2.

Definition at line 606 of file pt.h.

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

◆ operator-() [1/5]

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

operator-

Parameters
[in]aA constant.
Returns
Pt2.

Definition at line 473 of file pt.h.

References xms::Pt2< T >::Pt2().

◆ operator-() [2/5]

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

operator-

Parameters
[in]aPt2.
Returns
Pt2.

Definition at line 481 of file pt.h.

References xms::Pt2< T >::Pt2().

◆ operator-() [3/5]

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

operator-

Parameters
[in]aPt3.
Returns
Pt2.

Definition at line 489 of file pt.h.

References xms::Pt2< T >::Pt2().

◆ operator-() [4/5]

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

operator-

Parameters
[in]aPt4.
Returns
Pt2.

Definition at line 497 of file pt.h.

References xms::Pt2< T >::Pt2().

◆ operator-() [5/5]

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

unary operator-

Returns
Pt2.

Definition at line 504 of file pt.h.

References xms::Pt2< T >::Pt2().

◆ operator-=() [1/4]

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

operator-=

Parameters
[in]aA constant.
Returns
Pt2.

Definition at line 616 of file pt.h.

◆ operator-=() [2/4]

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

operator-=

Parameters
[in]aPt2.
Returns
Pt2.

Definition at line 625 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::Pt2< T >::operator-= ( const Pt3< U > &  a)
inline

operator-=

Parameters
[in]aPt3.
Returns
Pt2.

Definition at line 634 of file pt.h.

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

◆ operator-=() [4/4]

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

operator-=

Parameters
[in]aPt4.
Returns
Pt2.

Definition at line 643 of file pt.h.

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

◆ operator/() [1/4]

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

operator/

Parameters
[in]aA constant.
Returns
Pt2.

Definition at line 546 of file pt.h.

References xms::Pt2< T >::Pt2().

◆ operator/() [2/4]

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

operator/

Parameters
[in]aPt2.
Returns
Pt2.

Definition at line 554 of file pt.h.

References xms::Pt2< T >::Pt2().

◆ operator/() [3/4]

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

operator/

Parameters
[in]aPt3.
Returns
Pt2.

Definition at line 562 of file pt.h.

References xms::Pt2< T >::Pt2().

◆ operator/() [4/4]

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

operator/

Parameters
[in]aPt4.
Returns
Pt2.

Definition at line 570 of file pt.h.

References xms::Pt2< T >::Pt2().

◆ operator/=() [1/4]

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

operator/=

Parameters
[in]aA constant.
Returns
Pt2.

Definition at line 690 of file pt.h.

◆ operator/=() [2/4]

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

operator/=

Parameters
[in]aPt2.
Returns
Pt2.

Definition at line 699 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::Pt2< T >::operator/= ( const Pt3< U > &  a)
inline

operator/=

Parameters
[in]aPt3.
Returns
Pt2.

Definition at line 708 of file pt.h.

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

◆ operator/=() [4/4]

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

operator/=

Parameters
[in]aPt4.
Returns
Pt2.

Definition at line 717 of file pt.h.

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

◆ operator<() [1/4]

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

operator<

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

Definition at line 266 of file pt.h.

◆ operator<() [2/4]

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

operator<

Parameters
[in]aPt2.
Returns
true if <.

Definition at line 284 of file pt.h.

◆ operator<() [3/4]

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

operator<

Parameters
[in]aPt3.
Returns
true if <.

Definition at line 302 of file pt.h.

◆ operator<() [4/4]

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

operator<

Parameters
[in]aPt4.
Returns
true if <.

Definition at line 320 of file pt.h.

◆ operator<=() [1/4]

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

operator<=

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

Definition at line 339 of file pt.h.

◆ operator<=() [2/4]

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

operator<=

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

Definition at line 347 of file pt.h.

◆ operator<=() [3/4]

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

operator<=

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

Definition at line 355 of file pt.h.

◆ operator<=() [4/4]

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

operator<=

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

Definition at line 363 of file pt.h.

◆ operator=() [1/4]

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

operator= (Assignment operator)

Parameters
[in]aA constant.
Returns
Pt2 reference.

Definition at line 157 of file pt.h.

◆ operator=() [2/4]

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

operator= (Assignment operator)

Parameters
[in]aPt2.
Returns
Pt2 reference.

Definition at line 167 of file pt.h.

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

◆ operator=() [3/4]

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

operator= (Assignment operator)

Parameters
[in]aPt3.
Returns
Pt2 reference.

Definition at line 177 of file pt.h.

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

◆ operator=() [4/4]

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

operator= (Assignment operator)

Parameters
[in]aPt4.
Returns
Pt2 reference.

Definition at line 187 of file pt.h.

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

◆ operator==() [1/4]

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

operator==

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

Definition at line 200 of file pt.h.

◆ operator==() [2/4]

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

operator==

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

Definition at line 208 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::Pt2< T >::operator== ( const Pt3< U > &  a) const
inline

operator==

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

Definition at line 216 of file pt.h.

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

◆ operator==() [4/4]

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

operator==

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

Definition at line 224 of file pt.h.

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

◆ operator>() [1/4]

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

operator>

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

Definition at line 372 of file pt.h.

◆ operator>() [2/4]

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

operator>

Parameters
[in]aPt2.
Returns
true if >.

Definition at line 380 of file pt.h.

◆ operator>() [3/4]

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

operator>

Parameters
[in]aPt3.
Returns
true if >.

Definition at line 388 of file pt.h.

◆ operator>() [4/4]

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

operator>

Parameters
[in]aPt4.
Returns
true if >.

Definition at line 396 of file pt.h.

◆ operator>=() [1/4]

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

operator>=

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

Definition at line 405 of file pt.h.

◆ operator>=() [2/4]

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

operator>=

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

Definition at line 413 of file pt.h.

◆ operator>=() [3/4]

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

operator>=

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

Definition at line 421 of file pt.h.

◆ operator>=() [4/4]

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

operator>=

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

Definition at line 429 of file pt.h.

◆ operator[]() [1/2]

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

operator[]

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

Definition at line 744 of file pt.h.

◆ operator[]() [2/2]

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

operator[]

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

Definition at line 748 of file pt.h.

◆ serialize()

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

For serialization.

Parameters
archiveThe archive.
versionThe version.

Definition at line 778 of file pt.h.

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

◆ Set() [1/2]

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

Setter

Parameters
a_xx.
a_yy.

Definition at line 728 of file pt.h.

◆ Set() [2/2]

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

Setter

Parameters
aValue to use for x and y.

Definition at line 735 of file pt.h.


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