API Reference > OdGe Classes > OdGeInterval Class > OdGeInterval Methods > OdGeInterval::subtract Method
OdGeInterval::subtract Method
Syntax
C++
int subtract(const OdGeInterval& otherInterval, OdGeInterval& lInterval, OdGeInterval& rInterval) const;
Parameters 
Description 
const OdGeInterval& otherInterval 
[in] The interval to be subtracted from this one.  
OdGeInterval& lInterval 
[out] Receives the Left (or only) interval.  
OdGeInterval& rInterval 
[out] Receives the right interval. 

Returns the number of intervals, and the intervals, resulting from the subtraction 

 

Subtracts the specified interval from this interval.

return value 
Results 
Empty result 
Single interval in lInterval 
Left in lInterval, Right in rInterval. 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.