]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Ray.hh
game loop tweaks; shapes hierarchy defined
[chaz/yoink] / src / Moof / Ray.hh
index 1564087dcf4482bde9cada95e9084f60bc8ec82a..6d4705a81d4f24998597c17617e95f309caeb231 100644 (file)
@@ -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_
This page took 0.020632 seconds and 4 git commands to generate.