Close

Relief for ODA Team in Ukraine

Learn more
ODA Kernel SDK
OdGeInterval::subtract Method
Syntax
C++
int subtract(const OdGeInterval& otherInterval, OdGeInterval& lInterval, OdGeInterval& rInterval) const;

Subtracts the specified interval from this interval. 

 

Parameters
Description
otherInterval
[in] The interval to be subtracted from this one.
lInterval
[out] Receives the Left (or only) interval.
rInterval
[out] Receives the right interval.

Number of intervals, and the intervals, resulting from the subtraction.

return value
Results
0
Empty result
1
Single interval in lInterval
2
Left in lInterval, Right in rInterval.
Copyright © 2002-2022. Open Design Alliance All rights reserved.