OEGetNearestAtom¶
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¶
- disp
The OE2DMolDisplay object of which atoms are being considered. Only atoms of which atom display is visible are examined (
OEAtomDisplayBase.IsVisible
)- point
Specifies the 2D display coordinates.
See also
OENearestAtom class
OEGetNearbyAtom
function