Peano
Loading...
Searching...
No Matches
FD_Helper.cpph
Go to the documentation of this file.
1#pragma once
2
3namespace {
46 tarch::la::Vector<Dimensions,int> gridCellIndex2d( int x, int y ) {
48 result(0) = x;
49 result(1) = y;
50 return result;
51 }
52
53
57 tarch::la::Vector<Dimensions,int> gridCellIndex3d( int x, int y, int z ) {
59 result(0) = x;
60 result(1) = y;
61 result(2) = z;
62 return result;
63 }
64}
Simple vector class.
Definition Vector.h:150