OENearestResidue
class OENearestResidue
The OENearestResidue class that is used by
OEGetNearestResidue and
OEGetNearbyResidue functions.
It stores an atom pointer, an associated distance and the
display position of the atom.
Constructors
OENearestResidue(residue: OEResidue, dist: float, pos: OE2DPoint) -> OENearestResidue
Constructor.
GetDisplayPosition
GetDisplayPosition() -> OE2DPoint
Returns the display position of the nearest residue.
GetDist
GetDist() -> float
Returns the distance associated with the residue.
GetResidue
GetResidue() -> OEResidue
Returns the residue stored in the OENearestResidue object.
IsValid
IsValid() -> bool
Returns whether the OENearestResidue object is initialized correctly.