@Override public ITetrahedralChirality map(Map<IAtom, IAtom> atoms, Map<IBond, IBond> bonds) { return (ITetrahedralChirality) super.map(atoms, bonds); }
/** {@inheritDoc} */ @Override public IBond getStereoBond() { return getFocus(); }
private static TetrahedralSign getHandedness(Point3d pointA, Point3d pointB, Point3d pointC, Point3d pointD) { // assumes anti-clockwise for a right-handed system Vector3d normal = StereoTool.getNormal(pointA, pointB, pointC); // it doesn't matter which of points {A,B,C} is used return StereoTool.getHandedness(normal, pointA, pointD); }
/** * The central atom in the cumulated system. * * @return the focus */ public IAtom focus() { return getFocus(); }
private static TetrahedralSign getHandedness(Vector3d planeNormal, Point3d pointInPlane, Point3d testPoint) { double distance = signedDistanceToPlane(planeNormal, pointInPlane, testPoint); // The point-plane distance is the absolute value, // the sign of the distance gives the side of the plane the point is on // relative to the plane normal. if (distance > 0) { return TetrahedralSign.PLUS; } else { return TetrahedralSign.MINUS; } }
public void setBuilder(IChemObjectBuilder builder) { super.setBuilder(builder); }
/** * {@inheritDoc} */ @Override public void setConfigOrder(int cfg) { value = getConfigClass() | cfg; }
@Override public IAtom getChiralAtom() { return getFocus(); }
/** * The central atom in the cumulated system. * * @return the focus */ public IAtom focus() { return getFocus(); }
@Override public IDoubleBondStereochemistry map(Map<IAtom, IAtom> atoms, Map<IBond, IBond> bonds) { return (IDoubleBondStereochemistry) super.map(atoms, bonds); }
public void setBuilder(IChemObjectBuilder builder) { super.setBuilder(builder); }
/** {@inheritDoc} */ @Override public IBond getStereoBond() { return getFocus(); }
/** * {@inheritDoc} */ @Override public void setConfigOrder(int cfg) { value = getConfigClass() | cfg; }
@Override public IAtom getChiralAtom() { return getFocus(); }
@Override public ITetrahedralChirality map(Map<IAtom, IAtom> atoms, Map<IBond, IBond> bonds) { return (ITetrahedralChirality) super.map(atoms, bonds); }
@Override public void setBuilder(IChemObjectBuilder builder) { super.setBuilder(builder); }
@Override public IDoubleBondStereochemistry map(Map<IAtom, IAtom> atoms, Map<IBond, IBond> bonds) { return (IDoubleBondStereochemistry) super.map(atoms, bonds); }
@Override public void setBuilder(IChemObjectBuilder builder) { super.setBuilder(builder); }
@Override public ITetrahedralChirality map(Map<IChemObject, IChemObject> chemobjs) { return (ITetrahedralChirality) super.map(chemobjs); }
@Override public ITetrahedralChirality map(Map<IChemObject, IChemObject> chemobjs) { return (ITetrahedralChirality) super.map(chemobjs); }