xmscore  1.0
functors.h File Reference

Go to the source code of this file.

Classes

class  xms::ltPt3< T >
 less than Pt3 More...
 
class  xms::ltPt3_2D< T >
 less than Pt3 comparing in 2D, or, only x and y More...
 
class  xms::ltPt2< T >
 less than Pt2 More...
 

Typedefs

typedef ltPt3< double > xms::ltPt3d
 short name typedef
 
typedef ltPt3_2D< double > xms::ltPt3d_2D
 short name typedef
 
typedef ltPt2< double > xms::ltPt2d
 short name typedef
 

Functions

template<typename _T >
Pt2< _T > xms::ptTruncate (Pt2< _T > const &a_in)
 Truncate to an integer. More...
 
template<typename _T >
Pt3< _T > xms::ptTruncate (Pt3< _T > const &a_in)
 Truncate to an integer. More...
 
template<typename _T >
Pt4< _T > xms::ptTruncate (Pt4< _T > const &a_in)
 Truncate to an integer. More...
 

Detailed Description

Definition in file functors.h.

Function Documentation

◆ ptTruncate() [1/3]

template<typename _T >
Pt2<_T> xms::ptTruncate ( Pt2< _T > const &  a_in)

Truncate to an integer.

Parameters
a_inPoint to be truncated
Returns
truncated version of a_in

Definition at line 168 of file functors.h.

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

Referenced by xms::ptTruncate().

◆ ptTruncate() [2/3]

template<typename _T >
Pt3<_T> xms::ptTruncate ( Pt3< _T > const &  a_in)

Truncate to an integer.

Parameters
a_inPoint to be truncated
Returns
truncated version of a_in

Definition at line 181 of file functors.h.

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

◆ ptTruncate() [3/3]

template<typename _T >
Pt4<_T> xms::ptTruncate ( Pt4< _T > const &  a_in)

Truncate to an integer.

Parameters
a_inPoint to be truncated
Returns
truncated version of a_in

Definition at line 195 of file functors.h.

References xms::ptTruncate(), xms::Pt4< T >::w, xms::Pt4< T >::x, xms::Pt4< T >::y, and xms::Pt4< T >::z.