int peano::integration::dataqueries::CartesianGridWriterProxy::getVertexIndex( const tarch::la::Vector<2,double>& position ) { tarch::la::Vector<3,double> position3D; position3D(0) = position(0); position3D(1) = position(1); position3D(2) = 0.0; return getVertexIndex(position3D); }
int tarch::plotter::griddata::regular::CartesianGridArrayWriter::getCellIndex( const tarch::la::Vector<2,double>& position ) { tarch::la::Vector<3,double> position3D; position3D(0) = position(0); position3D(1) = position(1); position3D(2) = 0.0; return getVertexIndex(position3D); }
void ImageAccess::setScalar(Vector2i position, float value, uchar channel) { Vector3i position3D(position.x(), position.y(), 0); setScalar(position3D, value, channel); }
float ImageAccess::getScalar(Vector2i position, uchar channel) const { Vector3i position3D(position.x(), position.y(), 0); return getScalar(position3D, channel); }