20 lines
400 B
C++
20 lines
400 B
C++
#pragma once
|
|
|
|
#include "../math/vector.h"
|
|
|
|
// Recovered two-vector bounds layout used by the geometry reconstruction.
|
|
class idBounds {
|
|
public:
|
|
idVec3 b[2];
|
|
|
|
const idVec3& operator[](const int index) const {
|
|
return b[index];
|
|
}
|
|
|
|
idVec3& operator[](const int index) {
|
|
return b[index];
|
|
}
|
|
};
|
|
|
|
static_assert(sizeof(idBounds) == 24, "Recovered idBounds layout changed");
|