Math/Box,Rect: Add GetCorners method

This commit is contained in:
SirLynix
2023-08-13 18:14:22 +02:00
parent 5a299da930
commit 28d69ab552
4 changed files with 30 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
#ifndef NAZARA_MATH_RECT_HPP
#define NAZARA_MATH_RECT_HPP
#include <NazaraUtils/EnumArray.hpp>
#include <Nazara/Math/Enums.hpp>
#include <Nazara/Math/Vector2.hpp>
#include <string>
@@ -41,6 +42,7 @@ namespace Nz
constexpr Vector2<T> GetCenter() const;
constexpr Vector2<T> GetCorner(RectCorner corner) const;
constexpr EnumArray<RectCorner, Vector2<T>> GetCorners() const;
constexpr Vector2<T> GetLengths() const;
constexpr Vector2<T> GetMaximum() const;
constexpr Vector2<T> GetMinimum() const;