|
|
|
@ -41,7 +41,7 @@ template<class T> class Vector3: public Vector<3, T> { |
|
|
|
* Matrix4::translation(Vector3::xAxis(5.0f)); // same as Matrix4::translation({5.0f, 0.0f, 0.0f});
|
|
|
|
* Matrix4::translation(Vector3::xAxis(5.0f)); // same as Matrix4::translation({5.0f, 0.0f, 0.0f});
|
|
|
|
* Matrix4::rotation(deg(30.0f), Vector3::xAxis()); // same as Matrix::rotation(deg(30.0f), {1.0f, 0.0f, 0.0f});
|
|
|
|
* Matrix4::rotation(deg(30.0f), Vector3::xAxis()); // same as Matrix::rotation(deg(30.0f), {1.0f, 0.0f, 0.0f});
|
|
|
|
* @endcode |
|
|
|
* @endcode |
|
|
|
* @see yAxis(), zAxis(), xScale() |
|
|
|
* @see yAxis(), zAxis(), xScale(), Matrix4::right() |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
inline constexpr static Vector3<T> xAxis(T length = T(1)) { return Vector3<T>(length, T(), T()); } |
|
|
|
inline constexpr static Vector3<T> xAxis(T length = T(1)) { return Vector3<T>(length, T(), T()); } |
|
|
|
|
|
|
|
|
|
|
|
@ -49,7 +49,7 @@ template<class T> class Vector3: public Vector<3, T> { |
|
|
|
* @brief %Vector in direction of Y axis (up) |
|
|
|
* @brief %Vector in direction of Y axis (up) |
|
|
|
* |
|
|
|
* |
|
|
|
* See xAxis() for more information. |
|
|
|
* See xAxis() for more information. |
|
|
|
* @see yScale() |
|
|
|
* @see yScale(), Matrix4::up() |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
inline constexpr static Vector3<T> yAxis(T length = T(1)) { return Vector3<T>(T(), length, T()); } |
|
|
|
inline constexpr static Vector3<T> yAxis(T length = T(1)) { return Vector3<T>(T(), length, T()); } |
|
|
|
|
|
|
|
|
|
|
|
@ -57,7 +57,7 @@ template<class T> class Vector3: public Vector<3, T> { |
|
|
|
* @brief %Vector in direction of Z axis (backward) |
|
|
|
* @brief %Vector in direction of Z axis (backward) |
|
|
|
* |
|
|
|
* |
|
|
|
* See xAxis() for more information. |
|
|
|
* See xAxis() for more information. |
|
|
|
* @see zScale() |
|
|
|
* @see zScale(), Matrix4::backward() |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
inline constexpr static Vector3<T> zAxis(T length = T(1)) { return Vector3<T>(T(), T(), length); } |
|
|
|
inline constexpr static Vector3<T> zAxis(T length = T(1)) { return Vector3<T>(T(), T(), length); } |
|
|
|
|
|
|
|
|
|
|
|
|