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

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

#include <common.h>

Collaboration diagram for smile::CPosVelPoint< NumT >:
Collaboration graph
[legend]

Public Member Functions

 CPosVelPoint ()
 default constructor
 
 CPosVelPoint (const NumT Pos0, const NumT Pos1, const NumT Pos2, const NumT Vel0, const NumT Vel1, const NumT Vel2)
 construct from six float/double numbers
 
 CPosVelPoint (const CPosVelPoint< double > &src)
 copy constructor from CPosVelPoint<double>
 
 CPosVelPoint (const CPosVelPoint< float > &src)
 copy constructor from CPosVelPoint<float>
 

Public Attributes

NumT Pos [N_DIM]
 
NumT Vel [N_DIM]
 

Detailed Description

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

Data-only class containing 3 coordinates and 3 velocities.

Template Parameters
NumTis a numerical type (double or float). 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: