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. 

Possible return values are as follows: 

untitled table kIntersectUnknown Either or both extents boxes are invalid kIntersectNot The extents boxes are not intersecting kIntersectOpIn The specified OdGeExtents2d object is completely within this one kIntersectOpOut This OdGeExtents2d object is completely within the specified one kIntersectOk The extents boxes are intersecting, and a result is returned

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.

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