Skip to content

Commit 5064309

Browse files
committed
document bih node axis()
1 parent 749ec01 commit 5064309

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/engine/world/bih.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ class BIH final
1515
std::array<short, 2> split;
1616
std::array<ushort, 2> child;
1717

18+
/**
19+
* @brief Returns top two bits of child[0] which store axis information
20+
*
21+
* The bottom 14 bits should be accessed separately with childindex(0).
22+
*
23+
* @return top two bits (0-3).
24+
*/
1825
int axis() const;
1926

2027
/**

0 commit comments

Comments
 (0)