GADGET-4
intposconvert Class Reference

#include <intposconvert.h>

Inherited by ewald, and simparticles.

Public Member Functions

void constrain_intpos (MyIntPosType *pos)
 
template<typename T >
void diff_intpos_to_pos (MyIntPosType *a, MyIntPosType *b, T *posdiff, offset_tuple off=0)
 
MyIntPosType nearest_image_intpos_to_intpos_X (const MyIntPosType a, const MyIntPosType b)
 
MyIntPosType nearest_image_intpos_to_intpos_Y (const MyIntPosType a, const MyIntPosType b)
 
MyIntPosType nearest_image_intpos_to_intpos_Z (const MyIntPosType a, const MyIntPosType b)
 
template<typename T >
void nearest_image_intpos_to_pos (const MyIntPosType *const a, const MyIntPosType *const b, T *posdiff)
 
void nearest_image_intpos_to_absolute_intdist (const MyIntPosType *a, const MyIntPosType *b, MyIntPosType *delta)
 
template<typename T >
MySignedIntPosType pos_to_signedintpos (T posdiff)
 
template<typename T >
void pos_to_signedintpos (T *posdiff, MySignedIntPosType *intpos)
 
template<typename T >
void signedintpos_to_pos (MySignedIntPosType *intpos, T *pos)
 
double signedintpos_to_distanceorigin (MySignedIntPosType *intpos)
 
template<typename T >
void intpos_to_pos (MyIntPosType *intpos, T *posdiff)
 
void intpos_to_intpos (MyIntPosType *intpos, MyIntPosType *xyz)
 
template<typename T >
constrain_pos (T pos)
 
template<typename T >
void pos_to_intpos (T *posdiff, MyIntPosType *intpos)
 

Public Attributes

MyReal FacIntToCoord
 
MyReal FacCoordToInt
 
MyReal RegionLen
 
MyReal RegionCorner [3]
 
MyReal RegionCenter [3]
 

Detailed Description

Definition at line 34 of file intposconvert.h.

Member Function Documentation

◆ constrain_intpos()

void constrain_intpos ( MyIntPosType pos)
inline

Definition at line 68 of file intposconvert.h.

◆ constrain_pos()

T constrain_pos ( pos)
inline

Definition at line 423 of file intposconvert.h.

◆ diff_intpos_to_pos()

void diff_intpos_to_pos ( MyIntPosType a,
MyIntPosType b,
T *  posdiff,
offset_tuple  off = 0 
)
inline

Definition at line 89 of file intposconvert.h.

◆ intpos_to_intpos()

void intpos_to_intpos ( MyIntPosType intpos,
MyIntPosType xyz 
)
inline

Definition at line 405 of file intposconvert.h.

◆ intpos_to_pos()

void intpos_to_pos ( MyIntPosType intpos,
T *  posdiff 
)
inline

Definition at line 380 of file intposconvert.h.

◆ nearest_image_intpos_to_absolute_intdist()

void nearest_image_intpos_to_absolute_intdist ( const MyIntPosType a,
const MyIntPosType b,
MyIntPosType delta 
)
inline

Definition at line 269 of file intposconvert.h.

◆ nearest_image_intpos_to_intpos_X()

MyIntPosType nearest_image_intpos_to_intpos_X ( const MyIntPosType  a,
const MyIntPosType  b 
)
inline

Definition at line 107 of file intposconvert.h.

◆ nearest_image_intpos_to_intpos_Y()

MyIntPosType nearest_image_intpos_to_intpos_Y ( const MyIntPosType  a,
const MyIntPosType  b 
)
inline

Definition at line 126 of file intposconvert.h.

◆ nearest_image_intpos_to_intpos_Z()

MyIntPosType nearest_image_intpos_to_intpos_Z ( const MyIntPosType  a,
const MyIntPosType  b 
)
inline

Definition at line 145 of file intposconvert.h.

◆ nearest_image_intpos_to_pos()

void nearest_image_intpos_to_pos ( const MyIntPosType *const  a,
const MyIntPosType *const  b,
T *  posdiff 
)
inline


Definition at line 166 of file intposconvert.h.

◆ pos_to_intpos()

void pos_to_intpos ( T *  posdiff,
MyIntPosType intpos 
)
inline

Definition at line 449 of file intposconvert.h.

◆ pos_to_signedintpos() [1/2]

void pos_to_signedintpos ( T *  posdiff,
MySignedIntPosType intpos 
)
inline

Definition at line 331 of file intposconvert.h.

◆ pos_to_signedintpos() [2/2]

MySignedIntPosType pos_to_signedintpos ( posdiff)
inline

Definition at line 325 of file intposconvert.h.

◆ signedintpos_to_distanceorigin()

double signedintpos_to_distanceorigin ( MySignedIntPosType intpos)
inline

Definition at line 371 of file intposconvert.h.

◆ signedintpos_to_pos()

void signedintpos_to_pos ( MySignedIntPosType intpos,
T *  pos 
)
inline

Definition at line 365 of file intposconvert.h.

Member Data Documentation

◆ FacCoordToInt

MyReal FacCoordToInt

Definition at line 38 of file intposconvert.h.

◆ FacIntToCoord

MyReal FacIntToCoord

Definition at line 37 of file intposconvert.h.

◆ RegionCenter

MyReal RegionCenter[3]

Definition at line 43 of file intposconvert.h.

◆ RegionCorner

MyReal RegionCorner[3]

Definition at line 42 of file intposconvert.h.

◆ RegionLen

MyReal RegionLen

Definition at line 39 of file intposconvert.h.


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