MDLParser
Simple and modern library for parsing the Source engine model formats
Loading...
Searching...
No Matches
common.hpp
1#pragma once
2
3#include <array>
4
5namespace MdlParser::Structs {
6 struct Vector2D {
7 float x, y;
8 };
9
10 struct Vector {
11 float x, y, z;
12 };
13
14 struct Vector4D {
15 float x, y, z, w;
16 };
17
18 using Quaternion = Vector4D;
19 using RadianEuler = Vector;
20
21 struct Matrix3x4 {
22 std::array<std::array<float, 4>, 3> m;
23
24 std::array<float, 4>& operator[](int column) {
25 return m[column];
26 }
27 const std::array<float, 4>& operator[](int column) const {
28 return m[column];
29 }
30 };
31}
Definition: common.hpp:21
Definition: common.hpp:6
Definition: common.hpp:14
Definition: common.hpp:10