OENearestAtom OEGetNearestAtom(const OE2DMolDisplay &disp, const OE2DPoint &point)

Returns an OENearestAtom object that stores a pointer of the atom which is depicted nearest to a given 2D display coordinates.


Example of using the OEGetNearestAtom function to determine the nearest atom to a specific 2D point on the canvas


The OE2DMolDisplay object of which atoms are being considered. Only atoms of which atom display is visible are examined (OEAtomDisplayBase.IsVisible)


Specifies the 2D display coordinates.

See also