Browse Source

Doc++ (vector components, not values).

vectorfields
Vladimír Vondruš 14 years ago
parent
commit
7acda40a67
  1. 10
      src/Math/Vector3.h
  2. 12
      src/Math/Vector4.h

10
src/Math/Vector3.h

@ -112,16 +112,16 @@ template<class T> class Vector3: public Vector<3, T> {
/**
* @brief Constructor
* @param x X value
* @param y Y value
* @param z Z value
* @param x X component
* @param y Y component
* @param z Z component
*/
inline constexpr Vector3(T x, T y, T z): Vector<3, T>(x, y, z) {}
/**
* @brief Constructor
* @param xy Two component vector
* @param z Z value
* @param xy Two-component vector
* @param z Z component
*/
inline constexpr Vector3(const Vector<2, T>& xy, T z): Vector<3, T>(xy[0], xy[1], z) {}

12
src/Math/Vector4.h

@ -46,17 +46,17 @@ template<class T> class Vector4: public Vector<4, T> {
/**
* @brief Constructor
* @param x X value
* @param y Y value
* @param z Z value
* @param w W value
* @param x X component
* @param y Y component
* @param z Z component
* @param w W component
*/
inline constexpr Vector4(T x, T y, T z, T w = T(1)): Vector<4, T>(x, y, z, w) {}
/**
* @brief Constructor
* @param xyz Three component vector
* @param w W value
* @param xyz Three-component vector
* @param w W component
*/
/* Not marked as explicit, because conversion from Vector3 to Vector4
is fairly common, nearly always with W set to 1 */

Loading…
Cancel
Save