File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
src/main/java/com/actelion/research/chem Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 7272import com .actelion .research .chem .descriptor .DescriptorHandler ;
7373import com .actelion .research .chem .mcs .ListWithIntVec ;
7474import com .actelion .research .util .BurtleHasher ;
75+ import com .actelion .research .util .Formatter ;
7576import com .actelion .research .util .datamodel .IntegerDouble ;
7677
7778import java .util .*;
@@ -1720,4 +1721,19 @@ public final static List<IntegerDouble> getAllIndicesSortedByDistance(int [][] a
17201721 Collections .sort (li , IntegerDouble .getComparatorDouble ());
17211722 return li ;
17221723 }
1724+
1725+ public final static String toStringCoordinates (StereoMolecule m ){
1726+
1727+ StringBuilder sb = new StringBuilder ();
1728+ for (int i = 0 ; i < m .getAllAtoms (); i ++) {
1729+ if (i >0 )
1730+ sb .append ("\n " );
1731+ sb .append (Formatter .format2 (m .getAtomX (i )));
1732+ sb .append (", " );
1733+ sb .append (Formatter .format2 (m .getAtomY (i )));
1734+ sb .append (", " );
1735+ sb .append (Formatter .format2 (m .getAtomZ (i )));
1736+ }
1737+ return sb .toString ();
1738+ }
17231739}
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ public static String toStringWeightLabels(int [] weightLabels){
135135
136136 /**
137137 *
138- * @param s string with single digits '123456789 '.
138+ * @param s string with single digits '0123456789 '.
139139 * @return
140140 */
141141 public static int [] parseSingleDigitString (String s ) {
You can’t perform that action at this time.
0 commit comments