Adding nlohmanns json library

This commit is contained in:
Dynamitos
2020-05-05 01:52:07 +02:00
parent 3ef8342247
commit bb5b48698a
83 changed files with 2426 additions and 646 deletions
+13 -11
View File
@@ -1,5 +1,6 @@
#pragma once
#include "Vector.h"
#include "Matrix.h"
namespace Seele
{
@@ -7,26 +8,27 @@ class Transform
{
public:
Transform();
Transform(const Transform &other);
Transform(Transform &&other);
Transform(Vector position);
Transform(Vector position, Quaternion rotation);
Transform(Vector position, Quaternion rotation, Vector scale);
Transform(Quaternion rotation, Vector scale);
~Transform();
Vector inverseTransformPosition(const Vector &v) const;
static Vector getSafeScaleReciprocal(const Vector4 &inScale, float tolerance = 0.00001f);
Matrix4 toMatrix();
static Vector getSafeScaleReciprocal(const Vector4 &inScale, float tolerance = 0.000000001f);
inline Vector getPosition() const;
inline Quaternion getRotation() const;
inline Vector getScale() const;
Vector getPosition() const;
Quaternion getRotation() const;
Vector getScale() const;
inline static void multiply(Transform* outTransform, const Transform* a, const Transform* b);
bool equals(const Transform &other, float tolerance = 0.000000001f);
static void multiply(Transform *outTransform, const Transform *a, const Transform *b);
Transform& operator*(const Transform& other) const
{
Transform outTransform;
multiply(&outTransform, this, &other);
return outTransform;
}
Transform &operator=(const Transform &other);
Transform &operator=(Transform &&other);
Transform &operator*(const Transform &other) const;
private:
Vector4 position;