| |||||||
| |||||||
![]() | |||||||
Prototype | |||||||
template <class Tnum> interval<Tnum> intersection(const interval<Tnum>& a, const interval<Tnum>& b, bool& intersect) ; | |||||||
![]() | |||||||
Description | |||||||
Returns an interval which is an interval of all points which are contained
in both of the intervals. Returns an exact interval which is not rounded
out. Sets the contents of the boolean intersect to true
if the intevals do intersect. If they do not intersect, this boolean will
be false and the function will return the interval which spans the distance
between the two intervals.
| |||||||
![]() | |||||||
Definition | |||||||
interval.cct | |||||||
![]() | |||||||
Preconditions | |||||||
| |||||||
![]() | |||||||
Complexity | |||||||
![]() | |||||||
Example | |||||||
In intersection.h:
| |||||||
![]() | |||||||
Notes | |||||||
![]() | |||||||
See also | |||||||
Copyright ©
1998,1999 University of Notre Dame. All Rights Reserved.