mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +00:00
removed debug methods
This commit is contained in:
@@ -26,11 +26,8 @@ namespace omath::projection
|
|||||||
public:
|
public:
|
||||||
Camera(const Vector3& position, const Vector3& viewAngles, const ViewPort& viewPort, float fov, float near, float far);
|
Camera(const Vector3& position, const Vector3& viewAngles, const ViewPort& viewPort, float fov, float near, float far);
|
||||||
void SetViewAngles(const Vector3& viewAngles);
|
void SetViewAngles(const Vector3& viewAngles);
|
||||||
|
|
||||||
[[nodiscard]] const Vector3& GetViewAngles() const;
|
[[nodiscard]] const Vector3& GetViewAngles() const;
|
||||||
static float& GetFloat1();
|
|
||||||
|
|
||||||
static float& GetFloat2();
|
|
||||||
|
|
||||||
[[nodiscard]] Matrix GetViewMatrix() const;
|
[[nodiscard]] Matrix GetViewMatrix() const;
|
||||||
[[nodiscard]] Matrix GetProjectionMatrix() const;
|
[[nodiscard]] Matrix GetProjectionMatrix() const;
|
||||||
[[nodiscard]] Matrix GetTranslationMatrix() const;
|
[[nodiscard]] Matrix GetTranslationMatrix() const;
|
||||||
|
|||||||
@@ -21,16 +21,6 @@ namespace omath::projection
|
|||||||
m_farPlaneDistance = far;
|
m_farPlaneDistance = far;
|
||||||
}
|
}
|
||||||
|
|
||||||
float& Camera::GetFloat1() {
|
|
||||||
static float m_float1 = 0.36689f;
|
|
||||||
return m_float1;
|
|
||||||
}
|
|
||||||
|
|
||||||
float& Camera::GetFloat2() {
|
|
||||||
static float m_float2 = 1.14500f;
|
|
||||||
return m_float2;
|
|
||||||
}
|
|
||||||
|
|
||||||
Matrix Camera::GetViewMatrix() const
|
Matrix Camera::GetViewMatrix() const
|
||||||
{
|
{
|
||||||
const auto forward = Vector3::ForwardVector(m_viewAngles.x, m_viewAngles.y);
|
const auto forward = Vector3::ForwardVector(m_viewAngles.x, m_viewAngles.y);
|
||||||
|
|||||||
Reference in New Issue
Block a user