coord: prefer int/unsigned to intmax/size_t
This commit is contained in:
parent
0d9d6317fc
commit
ec78216813
10
extent.hpp
10
extent.hpp
@ -86,17 +86,17 @@ namespace util {
|
|||||||
template <typename T> using extent2 = extent<2,T>;
|
template <typename T> using extent2 = extent<2,T>;
|
||||||
template <typename T> using extent3 = extent<3,T>;
|
template <typename T> using extent3 = extent<3,T>;
|
||||||
|
|
||||||
template <size_t S> using extentu = extent<S,size_t>;
|
template <size_t S> using extentu = extent<S,unsigned>;
|
||||||
template <size_t S> using extenti = extent<S,intmax_t>;
|
template <size_t S> using extenti = extent<S,int>;
|
||||||
template <size_t S> using extentf = extent<S,float>;
|
template <size_t S> using extentf = extent<S,float>;
|
||||||
template <size_t S> using extentd = extent<S,double>;
|
template <size_t S> using extentd = extent<S,double>;
|
||||||
|
|
||||||
typedef extent2<intmax_t> extent2i;
|
typedef extent2<int> extent2i;
|
||||||
typedef extent2<size_t> extent2u;
|
typedef extent2<unsigned> extent2u;
|
||||||
typedef extent2<float> extent2f;
|
typedef extent2<float> extent2f;
|
||||||
typedef extent2<double> extent2d;
|
typedef extent2<double> extent2d;
|
||||||
|
|
||||||
typedef extent3<size_t> extent3u;
|
typedef extent3<unsigned> extent3u;
|
||||||
typedef extent3<float> extent3f;
|
typedef extent3<float> extent3f;
|
||||||
|
|
||||||
template <typename T> using extent_range2 = extent_range<2,T>;
|
template <typename T> using extent_range2 = extent_range<2,T>;
|
||||||
|
@ -58,12 +58,12 @@ namespace util { namespace geom {
|
|||||||
};
|
};
|
||||||
|
|
||||||
typedef AABB<2,float> AABB2f;
|
typedef AABB<2,float> AABB2f;
|
||||||
typedef AABB<2,size_t> AABB2u;
|
typedef AABB<2,unsigned> AABB2u;
|
||||||
typedef AABB<2,intmax_t> AABB2i;
|
typedef AABB<2,int> AABB2i;
|
||||||
|
|
||||||
typedef AABB<3,float> AABB3f;
|
typedef AABB<3,float> AABB3f;
|
||||||
typedef AABB<3,size_t> AABB3u;
|
typedef AABB<3,unsigned> AABB3u;
|
||||||
typedef AABB<3,intmax_t> AABB3i;
|
typedef AABB<3,int> AABB3i;
|
||||||
} }
|
} }
|
||||||
|
|
||||||
#include "aabb.ipp"
|
#include "aabb.ipp"
|
||||||
|
16
point.hpp
16
point.hpp
@ -61,7 +61,7 @@ namespace util {
|
|||||||
template <typename T> using point3 = point<3,T>;
|
template <typename T> using point3 = point<3,T>;
|
||||||
template <typename T> using point4 = point<4,T>;
|
template <typename T> using point4 = point<4,T>;
|
||||||
|
|
||||||
template <size_t S> using pointi = point<S,intmax_t>;
|
template <size_t S> using pointi = point<S,int>;
|
||||||
template <size_t S> using pointf = point<S,float>;
|
template <size_t S> using pointf = point<S,float>;
|
||||||
|
|
||||||
typedef point1<float> point1f;
|
typedef point1<float> point1f;
|
||||||
@ -73,14 +73,14 @@ namespace util {
|
|||||||
typedef point3<double> point3d;
|
typedef point3<double> point3d;
|
||||||
typedef point4<double> point4d;
|
typedef point4<double> point4d;
|
||||||
|
|
||||||
typedef point1<size_t> point1u;
|
typedef point1<unsigned> point1u;
|
||||||
typedef point2<size_t> point2u;
|
typedef point2<unsigned> point2u;
|
||||||
typedef point3<size_t> point3u;
|
typedef point3<unsigned> point3u;
|
||||||
typedef point4<size_t> point4u;
|
typedef point4<unsigned> point4u;
|
||||||
|
|
||||||
typedef point2<intmax_t> point2i;
|
typedef point2<int> point2i;
|
||||||
typedef point3<intmax_t> point3i;
|
typedef point3<int> point3i;
|
||||||
typedef point4<intmax_t> point4i;
|
typedef point4<int> point4i;
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
@ -122,8 +122,8 @@ namespace util {
|
|||||||
void sanity (void) const;
|
void sanity (void) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef region<2,size_t> region2u;
|
typedef region<2,unsigned> region2u;
|
||||||
typedef region<2,intmax_t> region2i;
|
typedef region<2,int> region2i;
|
||||||
typedef region<2,float> region2f;
|
typedef region<2,float> region2f;
|
||||||
typedef region<2,double> region2d;
|
typedef region<2,double> region2d;
|
||||||
|
|
||||||
|
12
vector.hpp
12
vector.hpp
@ -61,15 +61,15 @@ namespace util {
|
|||||||
template <typename T> using vector3 = vector<3,T>;
|
template <typename T> using vector3 = vector<3,T>;
|
||||||
template <typename T> using vector4 = vector<4,T>;
|
template <typename T> using vector4 = vector<4,T>;
|
||||||
|
|
||||||
template <size_t S> using vectoru = vector<S,uintmax_t>;
|
template <size_t S> using vectoru = vector<S,unsigned>;
|
||||||
template <size_t S> using vectori = vector<S,intmax_t>;
|
template <size_t S> using vectori = vector<S,int>;
|
||||||
template <size_t S> using vectorf = vector<S,float>;
|
template <size_t S> using vectorf = vector<S,float>;
|
||||||
|
|
||||||
typedef vector2<size_t> vector2u;
|
typedef vector2<unsigned> vector2u;
|
||||||
typedef vector3<size_t> vector3u;
|
typedef vector3<unsigned> vector3u;
|
||||||
|
|
||||||
typedef vector2<intmax_t> vector2i;
|
typedef vector2<int> vector2i;
|
||||||
typedef vector3<intmax_t> vector3i;
|
typedef vector3<int> vector3i;
|
||||||
|
|
||||||
typedef vector2<float> vector2f;
|
typedef vector2<float> vector2f;
|
||||||
typedef vector3<float> vector3f;
|
typedef vector3<float> vector3f;
|
||||||
|
Loading…
Reference in New Issue
Block a user