Lines Matching defs:l1
425 bool are_parallel(Line const &l1, Line const &l2, double eps = EPSILON)
427 return are_near(cross(l1.vector(), l2.vector()), 0, eps);
438 bool are_same(Line const &l1, Line const &l2, double eps = EPSILON)
440 return are_parallel(l1, l2, eps) && are_near(l1.origin(), l2, eps);
446 bool are_orthogonal(Line const &l1, Line const &l2, double eps = EPSILON)
448 return are_near(dot(l1.vector(), l2.vector()), 0, eps);
451 // evaluate the angle between l1 and l2 rotating l1 in cw direction
455 double angle_between(Line const& l1, Line const& l2)
457 double angle = angle_between(l1.vector(), l2.vector());
551 OptCrossing intersection(Line const& l1, Ray const& r2)
553 return detail::intersection_impl(r2, l1, 1);
563 OptCrossing intersection(Line const& l1, LineSegment const& ls2)
565 return detail::intersection_impl(ls2, l1, 1);
582 OptCrossing intersection(Line const& l1, Line const& l2);