Lines Matching defs:distance
104 /// Create a line normal to a vector at a specified distance from origin.
162 v *= distance(_initial, _final);
382 if (distance(pointAt(nearestTime(other._initial)), other._initial) != 0) return false;
383 if (distance(pointAt(nearestTime(other._final)), other._final) != 0) return false;
405 /// @brief Compute distance from point to line.
408 double distance(Point const &p, Line const &line)
411 return ::Geom::distance(p, line.initialPoint());
414 return ::Geom::distance(line.pointAt(t), p);
421 return are_near(distance(p, line), 0, eps);
464 double distance(Point const &p, LineSegment const &seg)
467 return distance(p, seg.pointAt(t));
473 return are_near(distance(p, seg), 0, eps);