Files
wowdecomp/Engine/Source/Tempest/CAaBox.h
T
SatyandClaude Opus 5.5 a09c429bd3 Tempest pass 1: readable field names, class-named files, math classes
- Field names from the 12340 type library (x/y/z/w, a0..d3, minY/minX/maxY/maxX, b/t, c/r, n/d, origin/dir)
- Files renamed to match their class; CRay -> C3Ray; C3Segment, CRect, CiRect, C2iVector, C3iVector split out
- MouseEventData, CharacterInfo, M2Bounds moved out of Tempest headers
- 107 functions: C2/C3/C4Vector, C33/C34/C44Matrix, C4Quaternion, C4Plane, CAaBox, CAaSphere, C3Ray, CRect, CiRect, CImVector, NTempest
- 0x4C1C40 is cdecl (q, out): ported as static C44Matrix::FromQuaternion (guessed)

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-09-24 20:46:51 +02:00

31 lines
778 B
C++

#ifndef ENGINE_SOURCE_TEMPEST_CAABOX_H
#define ENGINE_SOURCE_TEMPEST_CAABOX_H
#include <cstddef>
#include <cstdint>
#include "Engine/Source/Tempest/C3Vector.h"
class C44Matrix;
class CAaBox {
public:
static CAaBox Bounding(const C3Vector* points, uint32_t count);
static CAaBox Transform(const CAaBox& box, const C44Matrix& m);
/* 0000 */ C3Vector b;
/* 000C */ C3Vector t;
CAaBox() = default;
CAaBox(const C3Vector& b, const C3Vector& t);
bool ContainsPoint(const C3Vector& point) const;
bool Intersects(const CAaBox& box) const;
bool IntersectsXY(const CAaBox& box) const;
bool IsEmpty() const;
bool IsValid() const;
CAaBox operator|=(const CAaBox& box);
};
CAaBox operator|(const CAaBox& l, const CAaBox& r);
#endif