Added using form short names of vector
This commit is contained in:
parent
4e858b20ee
commit
5736c0b410
|
@ -363,6 +363,13 @@ std::istream& operator>>(std::istream& stream, Vector<T,N>& v);
|
|||
template<typename T, std::size_t N>
|
||||
std::ostream& operator<<(std::ostream& stream, Vector<T,N> const& v);
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
/// \relates Vector
|
||||
/// \brief Smaller name for Vector of 2 coordinates
|
||||
/////////////////////////////////////////////////////////////////
|
||||
template<typename T>
|
||||
using Vector2 = Vector<T,2>;
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
/// \relates Vector
|
||||
/// \brief Smaller name for Vector of 3 coordinates
|
||||
|
@ -370,6 +377,78 @@ std::ostream& operator<<(std::ostream& stream, Vector<T,N> const& v);
|
|||
template<typename T>
|
||||
using Vector3 = Vector<T,3>;
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
/// \relates Vector
|
||||
/// \brief Smaller name for Vector of 2 int
|
||||
/////////////////////////////////////////////////////////////////
|
||||
using Vector2i = Vector2<int>;
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
/// \relates Vector
|
||||
/// \brief Smaller name for Vector of 2 unsigned int
|
||||
/////////////////////////////////////////////////////////////////
|
||||
using Vector2u = Vector2<unsigned int>;
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
/// \relates Vector
|
||||
/// \brief Smaller name for Vector of 2 float
|
||||
/////////////////////////////////////////////////////////////////
|
||||
using Vector2f = Vector2<float>;
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
/// \relates Vector
|
||||
/// \brief Smaller name for Vector of 2 double
|
||||
/////////////////////////////////////////////////////////////////
|
||||
using Vector2d = Vector2<double>;
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
/// \relates Vector
|
||||
/// \brief Smaller name for Vector of 3 int
|
||||
/////////////////////////////////////////////////////////////////
|
||||
using Vector3i = Vector3<int>;
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
/// \relates Vector
|
||||
/// \brief Smaller name for Vector of 3 unsigned int
|
||||
/////////////////////////////////////////////////////////////////
|
||||
using Vector3u = Vector3<unsigned int>;
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
/// \relates Vector
|
||||
/// \brief Smaller name for Vector of 3 float
|
||||
/////////////////////////////////////////////////////////////////
|
||||
using Vector3f = Vector3<float>;
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
/// \relates Vector
|
||||
/// \brief Smaller name for Vector of 3 double
|
||||
/////////////////////////////////////////////////////////////////
|
||||
using Vector3d = Vector3<double>;
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
/// \relates Vector
|
||||
/// \brief Smaller name for Vector of 4 int
|
||||
/////////////////////////////////////////////////////////////////
|
||||
using Vector4i = Vector4<int>;
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
/// \relates Vector
|
||||
/// \brief Smaller name for Vector of 4 unsigned int
|
||||
/////////////////////////////////////////////////////////////////
|
||||
using Vector4u = Vector4<unsigned int>;
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
/// \relates Vector
|
||||
/// \brief Smaller name for Vector of 4 float
|
||||
/////////////////////////////////////////////////////////////////
|
||||
using Vector4f = Vector4<float>;
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
/// \relates Vector
|
||||
/// \brief Smaller name for Vector of 4 double
|
||||
/////////////////////////////////////////////////////////////////
|
||||
using Vector4d = Vector4<double>;
|
||||
|
||||
} // namespace geo
|
||||
|
||||
#include "Vector.inl"
|
||||
|
|
Loading…
Reference in New Issue