- Grunt::ServerLink: all CMD_GRUNT_* handlers, send helpers, features/strings, command table 0xB24D70, s_localeIds 0xAD3004, Pending::Remove (dead server-side link, docs/0x008CE200.md); ServerLink.h stub removed - PetAction type for CGPetInfo::m_actions / pet spell actions / cursor pet action, SetAutocast 0x5D32F0 - CParticleEmitter2 fields 0x98-0x11F moved into CParticleEmitter2::Params (ctor 0x979250) - fixed16(float), C3Vector::FlushDenormals, CGxuLightQueue + static 0xC7C074, CAaSphere(), CMapLowDetail(), C2Vector()/C4Plane() out of line, SpellHistory dtor, CGDynamicObject_C GetScale/GetRawFacing - DB record operator= (PetNameCache, CGPetition, DanceCache): fixes the shallow-copy double free in AddItem - ClientSetTimer(delay, handler, param) with its five callers, IOMd5Unit::Create without container, CDataStore::GetByte / Get(int32_t&), WDataStore::GetHeaderSpace, TSHashTable::Head, TSList::IsEmpty - CameraTurnPlayer calls CVehicleCamera_C::IsTransitioningFacing 0x5FAA10 (was IsHierarchyChasingFacing) - OFFSET additions: TSHashTable::Unlink, TInstanceId dtor, DBCACHEHASH dtor (+ ItemNameCache_C dtor), CDataStoreCache ctor, BitUnpacker/RunningAverageCalculator deleting dtors, CGTooltip::GetObjectType Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
70 lines
1.7 KiB
C++
70 lines
1.7 KiB
C++
#ifndef ENGINE_SOURCE_TEMPEST_C3VECTOR_H
|
|
#define ENGINE_SOURCE_TEMPEST_C3VECTOR_H
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
|
|
class C2Vector;
|
|
class C4Vector;
|
|
class CImVector;
|
|
|
|
class C3Vector {
|
|
public:
|
|
enum EAxis {
|
|
AXIS_X = 0,
|
|
AXIS_Y = 1,
|
|
AXIS_Z = 2
|
|
};
|
|
|
|
static C3Vector Cross(const C3Vector& a, const C3Vector& b);
|
|
static float Distance(const C3Vector& a, const C3Vector& b);
|
|
static C3Vector Max(const C3Vector& a, const C3Vector& b);
|
|
static C3Vector Min(const C3Vector& a, const C3Vector& b);
|
|
|
|
/* 0000 */ float x;
|
|
/* 0004 */ float y;
|
|
/* 0008 */ float z;
|
|
|
|
C3Vector();
|
|
C3Vector(float x, float y, float z);
|
|
C3Vector(const C4Vector& v);
|
|
C3Vector(const CImVector& color);
|
|
EAxis MajorAxis() const;
|
|
EAxis MinorAxis() const;
|
|
void Maximize(const C3Vector& v);
|
|
void Minimize(const C3Vector& v);
|
|
void Normalize();
|
|
void NormalizeSafe();
|
|
void FlushDenormals();
|
|
float SquaredMag() const;
|
|
void Zero();
|
|
C3Vector operator-() const;
|
|
C3Vector& operator+=(const C3Vector& v);
|
|
C3Vector& operator-=(const C3Vector& v);
|
|
C3Vector& operator*=(float s);
|
|
C3Vector& operator/=(float s);
|
|
};
|
|
|
|
C3Vector operator+(const C3Vector& l, const C3Vector& r);
|
|
C3Vector operator-(const C3Vector& l, const C3Vector& r);
|
|
C3Vector operator*(const C3Vector& l, float r);
|
|
bool operator==(const C3Vector& l, const C3Vector& r);
|
|
bool operator!=(const C3Vector& l, const C3Vector& r);
|
|
C3Vector operator%(const C3Vector& l, const C2Vector& r);
|
|
|
|
// INLINED
|
|
inline C3Vector::C3Vector() {
|
|
this->x = 0.0f;
|
|
this->y = 0.0f;
|
|
this->z = 0.0f;
|
|
}
|
|
|
|
// INLINED
|
|
inline C3Vector::C3Vector(float x, float y, float z) {
|
|
this->x = x;
|
|
this->y = y;
|
|
this->z = z;
|
|
}
|
|
|
|
#endif
|