OENearestAtom
class OENearestAtom
The OENearestAtom class that is used by
OEGetNearestAtom and
OEGetNearbyAtom functions.
It stores an atom pointer, an associated distance and the
display position of the atom.
Constructors
OENearestAtom() -> OENearestAtom
OENearestAtom(atom: OEAtomBase, dist: float) -> OENearestAtom
OENearestAtom(atom: OEAtomBase, dist: float, pos: OE2DPoint) -> OENearestAtom
OENearestAtom(arg2: OENearestAtom) -> OENearestAtom
Constructors.
If no display position is given then it will be initialized to OE2DPoint(0.0, 0.0).
GetAtom
GetAtom() -> OEAtomBase
Returns the atom pointer stored in the OENearestAtom object.
GetDisplayPosition
GetDisplayPosition() -> OE2DPoint
Returns the display position of the nearest atom.
GetDist
GetDist() -> float
Returns the distance associated with the atom.
IsValid
IsValid() -> bool
Returns whether the OENearestAtom object is initialized correctly.