API Reference > OdGe Classes > OdGeInterval Class > OdGeInterval Methods > OdGeInterval::isOverlapAtUpper Method
OdGeInterval::isOverlapAtUpper Method
Syntax
C++
bool isOverlapAtUpper(const OdGeInterval& otherInterval, OdGeInterval& overlap) const;
Parameters 
Description 
const OdGeInterval& otherInterval 
[in] The Interval to be tested.  
OdGeInterval& overlap 
[out] Receives the overlap of the Intervals. 

Returns true if and only if the specified Interval and this Interval overlap at the upper bound of this Interval.

Returns true if and only if 

  1. This Interval is bounded above, otherInterval is bounded below.
  2. Neither Interval is a singleton.
  3. The Intervals Intersect.
  4. otherInterval does not contain this one.
  5. The upper bound of this Interval is contained in otherInterval.
  6. The lower bound of otherInterval is contained within this one.
 

If all these conditions are met, this function returns the intersection of the Intervals. 

 

Copyright © 2002–2020. Open Design Alliance. All rights reserved.