X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FRay.hh;h=6d4705a81d4f24998597c17617e95f309caeb231;hp=1564087dcf4482bde9cada95e9084f60bc8ec82a;hb=76b3f4be992514a740ac03cdbdd57844142a0b4c;hpb=b714ba98cb92a1be42acba91d44fe5bfb0783a3b diff --git a/src/Moof/Ray.hh b/src/Moof/Ray.hh index 1564087..6d4705a 100644 --- a/src/Moof/Ray.hh +++ b/src/Moof/Ray.hh @@ -34,12 +34,12 @@ struct Ray : public Drawable Vector point; Vector direction; - struct Intersection + struct Contact { Scalar distance; // distance from the origin to the nearest point - Vector normal; // surface normal at intersection point + Vector normal; // surface normal at contact point - bool operator < (const Intersection& rhs) + bool operator < (const Contact& rhs) { return distance < rhs.distance; } @@ -69,6 +69,10 @@ struct Ray : public Drawable }; +typedef Ray<2> Ray2; +typedef Ray<3> Ray3; + + } // namespace Mf #endif // _MOOF_RAY_HH_