Files
kdm-re/include/gk/structs/math.h
T

34 lines
595 B
C++

#pragma once
#include "gk/types.h"
namespace gk {
// Natural x86 layout confirmed by the float-indexed accesses in
// FUN_101799b0, FUN_101ab5b0, and FUN_101ab640.
GK_PACK_PUSH(8)
struct Vec3 {
float x;
float y;
float z;
};
struct Vec4 {
float x;
float y;
float z;
float w;
};
// Row-major storage. FUN_101799b0 reads all sixteen contiguous floats and
// FUN_100e4140 applies rows 0..2 to candidate positions.
struct Matrix4x4 {
float m00, m01, m02, m03;
float m10, m11, m12, m13;
float m20, m21, m22, m23;
float m30, m31, m32, m33;
};
GK_PACK_POP
} // namespace gk