ray: move convenience typedefs directly after type decl

This commit is contained in:
Danny Robson 2018-04-13 18:47:22 +10:00
parent 44b3d8d628
commit 00515078f9

View File

@ -61,6 +61,11 @@ namespace util::geom {
ray (point<S,T>,vector<S,T>) -> ray<S,T>;
///////////////////////////////////////////////////////////////////////////
typedef ray<2,float> ray2f;
typedef ray<3,float> ray3f;
///////////////////////////////////////////////////////////////////////////
/// returns the distance along the ray in a ray-plane intersection
///
@ -122,11 +127,6 @@ namespace util::geom {
{
return distance (r, b) >= 0;
}
///////////////////////////////////////////////////////////////////////////
typedef ray<2,float> ray2f;
typedef ray<3,float> ray3f;
}
#endif