Commit 130602ac authored by Quentin Khan's avatar Quentin Khan

Mirror the {coordinates, Morton index} changes in a FBasicCell

The Morton index and the coordinates represent the same information in two
different format. Both are kept to avoid computing one or the other
repeatedly. When one is changed, the modification must be propagated to the
other.
parent e7830a61
......@@ -63,6 +63,7 @@ public:
/** To set the morton index */
void setMortonIndex(const MortonIndex inMortonIndex) {
this->coordinate.setPositionFromMorton(inMortonIndex);
this->mortonIndex = inMortonIndex;
}
......@@ -73,6 +74,7 @@ public:
/** To set the position */
void setCoordinate(const FTreeCoordinate& inCoordinate) {
this->mortonIndex = inCoordinate.getMortonIndex();
this->coordinate = inCoordinate;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment