Files
tech5/source/shared/idlib/bv/bounds2d.h
T
2026-08-08 13:54:26 -07:00

24 lines
525 B
C++

#pragma once
#include "../math/vector.h"
// tungsten.exe.h type 13101.
class idBounds2D {
public:
idVec2 bounds[2];
bool AddPoint(const idVec2& point);
bool ContainsPoint(const idVec2& point) const;
bool IntersectBounds(const idBounds2D& other) const;
const idVec2& operator[](const int index) const {
return bounds[index];
}
idVec2& operator[](const int index) {
return bounds[index];
}
};
static_assert(sizeof(idBounds2D) == 16, "Recovered idBounds2D layout changed");