From e42d09196c2c14cc89ce24dd167a25ea62bb8f43 Mon Sep 17 00:00:00 2001 From: Danilo Date: Sun, 10 Nov 2024 21:48:02 -0300 Subject: [PATCH] =?UTF-8?q?Corre=C3=A7=C3=B5es=20em=20collision.hpp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/xna/common/collision.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/xna/common/collision.hpp b/includes/xna/common/collision.hpp index d5d939f..7be48dd 100644 --- a/includes/xna/common/collision.hpp +++ b/includes/xna/common/collision.hpp @@ -155,17 +155,17 @@ namespace xna { } //Gets the near plane of the BoundingFrustum. - Plane Near() { return planes[0]; } + constexpr Plane Near() const { return planes[0]; } //Gets the far plane of the BoundingFrustum. - Plane Far() { return planes[1]; } + constexpr Plane Far() const { return planes[1]; } //Gets the left plane of the BoundingFrustum. - Plane Left() { return planes[2]; } + constexpr Plane Left() const { return planes[2]; } //Gets the right plane of the BoundingFrustum. - Plane Right() { return planes[3]; } + constexpr Plane Right() const { return planes[3]; } //Gets the top plane of the BoundingFrustum. - Plane Top() { return planes[4]; } + constexpr Plane Top() const { return planes[4]; } //Gets the bottom plane of the BoundingFrustum. - Plane Bottom() { return planes[5]; } + constexpr Plane Bottom() const { return planes[5]; } constexpr bool operator==(BoundingFrustum const& other) const { return matrix == other.matrix;