SMILE  v2.5
Schwarzschild Modelling Interactive expLoratory Environment
Public Member Functions | Public Attributes | List of all members
smile::CPosPoint< NumT > Struct Template Reference

Data-only class containing 3 coordinates. More...

#include <common.h>

Public Member Functions

 CPosPoint ()
 default constructor
 
 CPosPoint (const NumT Pos0, const NumT Pos1, const NumT Pos2)
 construct from three float/double numbers
 
 CPosPoint (const CPosPoint< double > &src)
 copy constructor from CPosPoint<double>
 
 CPosPoint (const CPosPoint< float > &src)
 copy constructor from CPosPoint<float>
 
 CPosPoint (const CPosVelPoint< double > &src)
 copy constructor from CPosVelPoint<double>
 
 CPosPoint (const CPosVelPoint< float > &src)
 copy constructor from CPosVelPoint<float>
 

Public Attributes

NumT Pos [N_DIM]
 

Detailed Description

template<typename NumT>
struct smile::CPosPoint< NumT >

Data-only class containing 3 coordinates.

Template Parameters
NumTmay be float or double. Copy constructor provided for both instantiations so that each one may be seamlessly converted to another one by (implicit) type cast.

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