OEGetNearestBond¶
OENearestBond OEGetNearestBond(const OE2DMolDisplay &disp, const OE2DPoint &point)
Returns an OENearestBond object that stores a pointer of the bond which is depicted nearest to a given 2D display coordinates.

Example of using the OEGetNearestBond function to determine the nearest bond to a specific 2D point on the canvas¶
- disp
The OE2DMolDisplay object of which bonds are being considered. Only bonds of which bond display is visible are examined (
OEBondDisplayBase.IsVisible
)- point
Specifies the 2D display coordinates.
See also
OENearestBond class
OEGetNearbyBond
function