Lines Matching defs:seg
93 explicit Line(LineSegment const &seg)
94 : _initial(seg.initialPoint())
95 , _final(seg.finalPoint())
274 LineSegment* seg = new LineSegment(pointAt(f), pointAt(t));
275 return seg;
464 double distance(Point const &p, LineSegment const &seg)
466 double t = seg.nearestTime(p);
467 return distance(p, seg.pointAt(t));
471 bool are_near(Point const &p, LineSegment const &seg, double eps = EPSILON)
473 return are_near(distance(p, seg), 0, eps);
518 LineSegment projection(LineSegment const &seg, Line const &line)
520 return line.segment(line.nearestTime(seg.initialPoint()),
521 line.nearestTime(seg.finalPoint()));