Skip to content

Commit

Permalink
CartesianGridXY: add missing parenthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
andresailer authored Sep 12, 2023
1 parent 551fe45 commit 898186b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DDCore/src/segmentations/CartesianGridXY.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ Vector3D CartesianGridXY::position(const CellID& cID) const {
_decoder->set( cID,_xId, positionToBin(localPosition.X, _gridSizeX, _offsetX+_staggerX*_gridSizeX*(layer%2)/2) );
_decoder->set( cID,_yId, positionToBin(localPosition.Y, _gridSizeY, _offsetY+_staggerY*_gridSizeY*(layer%2)/2) );
} else {
_decoder->set( cID,_xId, positionToBin(localPosition.X, _gridSizeX, _offsetX);
_decoder->set( cID,_yId, positionToBin(localPosition.Y, _gridSizeY, _offsetY);
_decoder->set( cID,_xId, positionToBin(localPosition.X, _gridSizeX, _offsetX));
_decoder->set( cID,_yId, positionToBin(localPosition.Y, _gridSizeY, _offsetY));
}
return cID ;
}
Expand Down

0 comments on commit 898186b

Please sign in to comment.