From 42a72287a51daacd3d21f3c11b8978aa6a54c69b Mon Sep 17 00:00:00 2001 From: intns <84647527+intns@users.noreply.github.com> Date: Sat, 18 May 2024 18:05:27 +0100 Subject: [PATCH] Update Vector3.h --- include/Vector3.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/include/Vector3.h b/include/Vector3.h index 2df8dedb9..a550203df 100644 --- a/include/Vector3.h +++ b/include/Vector3.h @@ -14,6 +14,7 @@ struct Matrixf; * @brief A 3-dimensional vector template class. * * @tparam T The type of the vector components. + * @note 2D functions refer to the X and Z components, and ignores the y dimension, a flat plane. */ template struct Vector3 { @@ -75,9 +76,9 @@ struct Vector3 { inline T absX(); inline T absY(); inline T absZ(); - inline bool boundedX(T bound); - inline bool boundedY(T bound); - inline bool boundedZ(T bound); + inline bool isBoundedX(T bound); + inline bool isBoundedY(T bound); + inline bool isBoundedZ(T bound); inline void scale(T scale); // Magnitude Functions @@ -416,19 +417,19 @@ inline T Vector3::absZ() } template -inline bool Vector3::boundedX(T bound) +inline bool Vector3::isBoundedX(T bound) { return absX() < bound; } template -inline bool Vector3::boundedY(T bound) +inline bool Vector3::isBoundedY(T bound) { return absY() < bound; } template -inline bool Vector3::boundedZ(T bound) +inline bool Vector3::isBoundedZ(T bound) { return absZ() < bound; }