Skip to content

Commit

Permalink
[Refactoring] Vector3 should not derivate from another type as it is …
Browse files Browse the repository at this point in the history
…used in 3d buffers
  • Loading branch information
fabsgc committed Jan 1, 2025
1 parent 151b5d8 commit 07099c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Source/Framework/Utility/Math/TeQuaternion.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#pragma once

#include "Prerequisites/TePrerequisitesUtility.h"
#include "ThirdParty/Json/json.h"
#include "Math/TeMath.h"
#include "Math/TeVector3.h"
#include "Serialization/TeJsonSerialization.h"

namespace te
{
/** Represents a quaternion used for 3D rotations. */
class TE_UTILITY_EXPORT Quaternion : public serialization::JsonSerialization
class TE_UTILITY_EXPORT Quaternion
{
private:
struct EulerAngleOrderData
Expand Down Expand Up @@ -389,7 +389,7 @@ namespace te

public:
/** @copydoc serialization::JsonSerialization::ExportJson */
void ExportJson(nlohmann::json& document) const override;
void ExportJson(nlohmann::json& document) const;

/** Creates a Quaternion from a json document */
static Quaternion ImportJson(nlohmann::json& document);
Expand Down
6 changes: 3 additions & 3 deletions Source/Framework/Utility/Math/TeVector3.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
#include <cmath>

#include "Prerequisites/TePrerequisitesUtility.h"
#include "Serialization/TeJsonSerialization.h"
#include "ThirdParty/Json/json.h"
#include "Math/TeRadian.h"

namespace te
{
/** A three dimensional vector. */
class TE_UTILITY_EXPORT Vector3 : public serialization::JsonSerialization
class TE_UTILITY_EXPORT Vector3
{
public:
float x = 0.0f , y = 0.0f, z = 0.0f;
Expand Down Expand Up @@ -410,7 +410,7 @@ namespace te

public:
/** @copydoc serialization::JsonSerialization::ExportJson */
void ExportJson(nlohmann::json& document) const override;
void ExportJson(nlohmann::json& document) const;

/** Creates a Vector3 from a json document */
static Vector3 ImportJson(nlohmann::json& document);
Expand Down

0 comments on commit 07099c8

Please sign in to comment.