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);
}
Esempio n. 3
0
void ImageAccess::setScalar(Vector2i position, float value, uchar channel) {
    Vector3i position3D(position.x(), position.y(), 0);
    setScalar(position3D, value, channel);
}
Esempio n. 4
0
float ImageAccess::getScalar(Vector2i position, uchar channel) const {
    Vector3i position3D(position.x(), position.y(), 0);
    return getScalar(position3D, channel);
}