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;
}
};
+typedef Ray<2> Ray2;
+typedef Ray<3> Ray3;
+
+
} // namespace Mf
#endif // _MOOF_RAY_HH_