geom/segment: add convenience typedefs
This commit is contained in:
parent
c3840f05b8
commit
922d46dd8a
@ -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));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user