@ Override public Point3d get3DCenter ( ) { double xOfCenter = 0 ; double yOfCenter = 0 ; double zOfCenter = 0 ; for ( IAtom atom : atoms ) { xOfCenter += atom . getPoint3d ( ) . x ; yOfCenter += atom . getPoint3d ( ) . y ; zOfCenter += atom . getPoint3d ( ) . z ; } return new Point3d ( xOfCenter / getAtomCount ( ) , yOfCenter / getAtomCount ( ) , zOfCenter / getAtomCount ( ) ) ; }
Returns the geometric 3D center of the bond .