Formatted EVERYTHING
This commit is contained in:
+16
-18
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user