Source

foundation / math_types.h

Diff from to

math_types.h

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