aabb: add signed and unsigned convenience types

This commit is contained in:
Danny Robson 2015-03-23 18:43:22 +11:00
parent 0318c70709
commit cf9db48e0e

View File

@ -24,6 +24,7 @@
#include "point.hpp"
#include "extent.hpp"
#include <cstdint>
#include <iostream>
namespace util {
@ -44,7 +45,12 @@ namespace util {
};
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,uint32_t> AABB3u;
typedef AABB<3,uint32_t> AABB3i;
template <size_t S, typename T>
std::ostream& operator<< (std::ostream&, AABB<S,T>);