Function R1Interval.fromPointPair

Convenience method to construct the minimal interval containing the two given points. This is equivalent to starting with an empty interval and calling AddPoint() twice, but it is more efficient.

static R1Interval fromPointPair (
  double p1,
  double p2
);