From 88e6221ac30a403800a3f79c25e02cd3a5023c7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 6 Aug 2012 23:25:34 +0200 Subject: [PATCH] Better name for parameter in VectorN constructor from VectorN-1. --- src/Math/Vector3.h | 6 +++--- src/Math/Vector4.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Math/Vector3.h b/src/Math/Vector3.h index 040fe1f58..d70e6dc08 100644 --- a/src/Math/Vector3.h +++ b/src/Math/Vector3.h @@ -68,10 +68,10 @@ template class Vector3: public Vector<3, T> { /** * @brief Constructor - * @param other Two component vector - * @param z Z value + * @param xy Two component vector + * @param z Z value */ - inline constexpr Vector3(const Vector<2, T>& other, T z): Vector<3, T>(other[0], other[1], z) {} + inline constexpr Vector3(const Vector<2, T>& xy, T z): Vector<3, T>(xy[0], xy[1], z) {} inline constexpr T x() const { return (*this)[0]; } /**< @brief X component */ inline constexpr T y() const { return (*this)[1]; } /**< @brief Y component */ diff --git a/src/Math/Vector4.h b/src/Math/Vector4.h index 490f2dcea..32d4f3c51 100644 --- a/src/Math/Vector4.h +++ b/src/Math/Vector4.h @@ -50,12 +50,12 @@ template class Vector4: public Vector<4, T> { /** * @brief Constructor - * @param other Three component vector - * @param w W value + * @param xyz Three component vector + * @param w W value */ /* Not marked as explicit, because conversion from Vector3 to Vector4 is fairly common, nearly always with W set to 1 */ - inline constexpr Vector4(const Vector<3, T>& other, T w = T(1)): Vector<4, T>(other[0], other[1], other[2], w) {} + inline constexpr Vector4(const Vector<3, T>& xyz, T w = T(1)): Vector<4, T>(xyz[0], xyz[1], xyz[2], w) {} inline constexpr T x() const { return (*this)[0]; } /**< @brief X component */ inline constexpr T y() const { return (*this)[1]; } /**< @brief Y component */