API Reference > OdGe Classes > OdGeExtents2d Class > OdGeExtents2d Methods > OdGeExtents2d::intersectWith Method
OdGeExtents2d::intersectWith Method
Syntax
C++
IntersectionStatus intersectWith(const OdGeExtents2d& extents, OdGeExtents2d* pResult = 0) const;
Parameters 
Description 
const OdGeExtents2d& extents 
[in] Any 2D Extents object.  
OdGeExtents2d* pResult = 0 
[out] Receives extents of the intersection. 

Determines the intersection of the specified Extents object with this one, and returns the resulting intersection box. 

 

pResult object should be created by the caller. Possible return values are as follows. 

untitled table kIntersectUnknown Either or both Extents objects are invalid kIntersectNot The Extents objects are NOT intersecting kIntersectOpIn The specified Extents object is completely within this one kIntersectOpOut This Extents object is completely within the specified one kIntersectOk The Extents objectes are intersecting, and a result is returned

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