Formatted EVERYTHING

This commit is contained in:
Dynamitos
2024-06-09 12:20:53 +02:00
parent f18bf8acbe
commit d95dab850c
265 changed files with 8002 additions and 12310 deletions
+16 -18
View File
@@ -1,24 +1,22 @@
#pragma once
#include "Math/Vector.h"
#include "Math/Matrix.h"
#include "Math/Vector.h"
namespace Seele
{
namespace Math
{
class Transform
{
public:
namespace Seele {
namespace Math {
class Transform {
public:
Transform();
Transform(const Transform &other);
Transform(Transform &&other);
Transform(const Transform& other);
Transform(Transform&& other);
explicit Transform(Vector position);
Transform(Vector position, Quaternion rotation);
Transform(Vector position, Quaternion rotation, Vector scale);
Transform(Quaternion rotation, Vector scale);
~Transform();
Matrix4 toMatrix() const;
Vector transformPosition(const Vector &v) const;
Vector transformPosition(const Vector& v) const;
Vector getPosition() const;
Quaternion getRotation() const;
@@ -32,16 +30,16 @@ public:
Vector getRight() const;
Vector getUp() const;
bool equals(const Transform &other, float tolerance = 0.000000001f);
static void multiply(Transform *outTransform, const Transform *a, const Transform *b);
static void add(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);
static void add(Transform* outTransform, const Transform* a, const Transform* b);
Transform &operator=(const Transform &other);
Transform &operator=(Transform &&other);
Transform& operator=(const Transform& other);
Transform& operator=(Transform&& other);
Transform operator+(const Transform& other) const;
Transform operator*(const Transform &other) const;
Transform operator*(const Transform& other) const;
private:
private:
Vector4 position;
Quaternion rotation;
Vector4 scale;