geom/segment: add convenience typedefs

This commit is contained in:
Danny Robson 2019-03-11 18:56:39 +11:00
parent c3840f05b8
commit 922d46dd8a

View File

@ -19,6 +19,9 @@ namespace cruft::geom {
};
using segment2i = segment<2,int>;
using segment3i = segment<3,int>;
using segment2f = segment<2,float>;
using segment3f = segment<3,float>;
@ -47,4 +50,4 @@ namespace cruft::geom {
{
return std::sqrt (distance2 (s, p));
}
};
}