Function R1Interval.project

Returns the closest point in the interval to the given point "p". The interval must be

double project (
  double p
) const;