Close

Relief for ODA Team in Ukraine

Learn more
ODA Kernel SDK
OdGeExtents2d::intersectWith Method
Syntax
C++
IntersectionStatus intersectWith(const OdGeExtents2d& extents, OdGeExtents2d* pResult = 0) const;

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

 

Parameters
Description
extents
[in] Any 2D Extents object.
pResult
[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

pResult object should be created by the caller.

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