Implementing ECS SystemBase and updating slang

This commit is contained in:
Dynamitos
2022-11-15 12:19:11 +01:00
parent 05bc31a2b4
commit f635ee2100
106 changed files with 1083 additions and 1675 deletions
+6 -3
View File
@@ -1,9 +1,11 @@
#pragma once
#include "Vector.h"
#include "Matrix.h"
#include "Math/Vector.h"
#include "Math/Matrix.h"
namespace Seele
{
namespace Math
{
class Transform
{
public:
@@ -16,7 +18,7 @@ public:
Transform(Quaternion rotation, Vector scale);
~Transform();
Vector inverseTransformPosition(const Vector &v) const;
Matrix4 toMatrix();
Matrix4 toMatrix() const;
static Vector getSafeScaleReciprocal(const Vector4 &inScale, float tolerance = 0.000000001f);
Vector transformPosition(const Vector &v) const;
@@ -41,4 +43,5 @@ private:
Quaternion rotation;
Vector4 scale;
};
} // namespace Math
} // namespace Seele