mirror of
https://github.com/orange-cpp/omath.git
synced 2026-04-19 04:43:26 +00:00
23 lines
545 B
C++
23 lines
545 B
C++
//
|
|
// Created by orange on 13.03.2026.
|
|
//
|
|
#pragma once
|
|
#include "omath/linear_algebra/vector2.hpp"
|
|
#include <array>
|
|
namespace omath::hud
|
|
{
|
|
class CanvasBox final
|
|
{
|
|
public:
|
|
CanvasBox(Vector2<float> top, Vector2<float> bottom, float ratio = 4.f);
|
|
|
|
[[nodiscard]]
|
|
std::array<Vector2<float>, 4> as_array() const;
|
|
|
|
Vector2<float> top_left_corner;
|
|
Vector2<float> top_right_corner;
|
|
|
|
Vector2<float> bottom_left_corner;
|
|
Vector2<float> bottom_right_corner;
|
|
};
|
|
} // namespace omath::hud
|