coord: use size_t/intmax_t for u and i suffixes
size_t matches array indices we are likely to be used in conjuction with these types.
This commit is contained in:
parent
14cab4fb9b
commit
5627c573eb
8
aabb.hpp
8
aabb.hpp
@ -45,12 +45,12 @@ namespace util {
|
|||||||
};
|
};
|
||||||
|
|
||||||
typedef AABB<2,float> AABB2f;
|
typedef AABB<2,float> AABB2f;
|
||||||
typedef AABB<2,uint32_t> AABB2u;
|
typedef AABB<2,size_t> AABB2u;
|
||||||
typedef AABB<2,int32_t> AABB2i;
|
typedef AABB<2,intmax_t> AABB2i;
|
||||||
|
|
||||||
typedef AABB<3,float> AABB3f;
|
typedef AABB<3,float> AABB3f;
|
||||||
typedef AABB<3,uint32_t> AABB3u;
|
typedef AABB<3,size_t> AABB3u;
|
||||||
typedef AABB<3,uint32_t> AABB3i;
|
typedef AABB<3,intmax_t> AABB3i;
|
||||||
|
|
||||||
template <size_t S, typename T>
|
template <size_t S, typename T>
|
||||||
std::ostream& operator<< (std::ostream&, AABB<S,T>);
|
std::ostream& operator<< (std::ostream&, AABB<S,T>);
|
||||||
|
@ -55,7 +55,7 @@ namespace util {
|
|||||||
static const extent MIN;
|
static const extent MIN;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef extent<2,int> extent2i;
|
typedef extent<2,intmax_t> extent2i;
|
||||||
typedef extent<2,size_t> extent2u;
|
typedef extent<2,size_t> extent2u;
|
||||||
typedef extent<2,float> extent2f;
|
typedef extent<2,float> extent2f;
|
||||||
typedef extent<2,double> extent2d;
|
typedef extent<2,double> extent2d;
|
||||||
|
@ -70,6 +70,7 @@ namespace util {
|
|||||||
typedef point<3,double> point3d;
|
typedef point<3,double> point3d;
|
||||||
|
|
||||||
typedef point<2,size_t> point2u;
|
typedef point<2,size_t> point2u;
|
||||||
|
typedef point<2,intmax_t> point2i;
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
@ -71,7 +71,7 @@ namespace util {
|
|||||||
|
|
||||||
// convenience typedefs
|
// convenience typedefs
|
||||||
typedef vector<2,size_t> vector2u;
|
typedef vector<2,size_t> vector2u;
|
||||||
typedef vector<2,long> vector2i;
|
typedef vector<2,intmax_t> vector2i;
|
||||||
|
|
||||||
typedef vector<2,float> vector2f;
|
typedef vector<2,float> vector2f;
|
||||||
typedef vector<3,float> vector3f;
|
typedef vector<3,float> vector3f;
|
||||||
|
Loading…
Reference in New Issue
Block a user