aabb: add signed and unsigned convenience types
This commit is contained in:
parent
0318c70709
commit
cf9db48e0e
6
aabb.hpp
6
aabb.hpp
@ -24,6 +24,7 @@
|
|||||||
#include "point.hpp"
|
#include "point.hpp"
|
||||||
#include "extent.hpp"
|
#include "extent.hpp"
|
||||||
|
|
||||||
|
#include <cstdint>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
namespace util {
|
namespace util {
|
||||||
@ -44,7 +45,12 @@ namespace util {
|
|||||||
};
|
};
|
||||||
|
|
||||||
typedef AABB<2,float> AABB2f;
|
typedef AABB<2,float> AABB2f;
|
||||||
|
typedef AABB<2,uint32_t> AABB2u;
|
||||||
|
typedef AABB<2,int32_t> AABB2i;
|
||||||
|
|
||||||
typedef AABB<3,float> AABB3f;
|
typedef AABB<3,float> AABB3f;
|
||||||
|
typedef AABB<3,uint32_t> AABB3u;
|
||||||
|
typedef AABB<3,uint32_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>);
|
||||||
|
Loading…
Reference in New Issue
Block a user