Removes virtual destructor from Camera

Removes the virtual destructor from the Camera class as it is not required,
as the class does not act as a base class. This simplifies the class
definition and avoids potential vtable overhead.
This commit is contained in:
2025-08-11 01:43:20 +03:00
parent 4d24815f3e
commit 15c055beb7

View File

@@ -30,7 +30,7 @@ namespace omath::projection
class Camera final
{
public:
virtual ~Camera() = default;
~Camera() = default;
Camera(const Vector3<float>& position, const ViewAnglesType& view_angles, const ViewPort& view_port,
const FieldOfView& fov, const float near, const float far) noexcept
: m_view_port(view_port), m_field_of_view(fov), m_far_plane_distance(far), m_near_plane_distance(near),