Commits

Niklas Frykholm  committed d274669

Basic math types.

  • Participants
  • Parent commits cacbbdd

Comments (0)

Files changed (1)

File math_types.h

+#pragma once
+
+#include "types.h"
+
+struct Vector2
+{
+	float x, y;
+};
+
+struct Vector3
+{
+	float x, y, z;
+};
+
+struct Vector4
+{
+	float x, y, z, w;
+};
+
+struct Quaternion
+{
+	float x, y, z, w;
+};
+
+struct Matrix3x3
+{
+	Vector3 x, y, z;
+};
+
+struct Matrix4x4
+{
+	Vector4 x, y, z, t;
+};
+
+struct AABB
+{
+	Vector3 min, max;
+};
+
+struct OOBB
+{
+	Matrix4x4 tm;
+	AABB aabb;
+};