Vector a;
Vector b;
- Scalar intersectRay(const Ray<2>& ray, Ray<2>::Intersection& intersection)
+
+ Line() {}
+
+ Line(const Vector& point1, const Vector& point2) :
+ a(point1),
+ b(point2) {}
+
+ Scalar intersectRay(const Ray<2>& ray,
+ Ray<2>::Intersection& intersection) const
{
// solve: Cx + r*Dx = Ax + s(Bx - Ax)
// Cy + r*Dy = Ay + s(By - Ay)