mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 15:24:03 +02:00
fixing the addressing issue
This commit is contained in:
parent
6d8c33b996
commit
23f2c98834
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ namespace render {
|
||||||
bool operator== (const Location& right) const { return pos == right.pos && depth == right.depth; }
|
bool operator== (const Location& right) const { return pos == right.pos && depth == right.depth; }
|
||||||
|
|
||||||
// Eval the octant of this cell relative to its parent
|
// Eval the octant of this cell relative to its parent
|
||||||
Octant octant() const { return Octant((pos.x & 1) | (pos.y & 1) | (pos.z & 1)); }
|
Octant octant() const { return Octant((pos.x & 1) | ((pos.y & 1) << 1) | ((pos.z & 1) << 2)); }
|
||||||
Coord3 octantAxes(Link octant) const { return Coord3((Coord)bool(octant & XAxis), (Coord)bool(octant & YAxis), (Coord)bool(octant & ZAxis)); }
|
Coord3 octantAxes(Link octant) const { return Coord3((Coord)bool(octant & XAxis), (Coord)bool(octant & YAxis), (Coord)bool(octant & ZAxis)); }
|
||||||
|
|
||||||
// Get the Parent cell Location of this cell
|
// Get the Parent cell Location of this cell
|
||||||
|
|
Loading…
Reference in a new issue