public override bool isConnectedAfter(Monomer possiblyPreviousMonomer)
        {
            if (possiblyPreviousMonomer == null)
            {
                return(true);
            }
            if (!(possiblyPreviousMonomer is PhosphorusMonomer))
            {
                return(false);
            }
            // 1PN8 73:d and 74:d are 7.001 angstroms apart
            float distance = LeadAtomPoint.distance(possiblyPreviousMonomer.LeadAtomPoint);

            return(distance <= 7.1f);
        }
Beispiel #2
0
        public override bool isConnectedAfter(Monomer possiblyPreviousMonomer)
        {
            if (possiblyPreviousMonomer == null)
            {
                return(true);
            }
            if (!(possiblyPreviousMonomer is AlphaMonomer))
            {
                return(false);
            }
            float distance = LeadAtomPoint.distance(possiblyPreviousMonomer.LeadAtomPoint);

            // jan reichert in email to miguel on 10 May 2004 said 4.2 looked good
            return(distance <= 4.2f);
        }