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

The OE2DMolDisplay object of which bonds are being considered. Only bonds of which bond display is visible are examined (OEBondDisplayBase::IsVisible)
Specifies the 2D display coordinates.

See also