Skip to content

Commit 01287d7

Browse files
committed
Fix Calc centroid and center of mass documentation
1 parent 72c6768 commit 01287d7

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

  • biojava-structure/src/main/java/org/biojava/nbio/structure

biojava-structure/src/main/java/org/biojava/nbio/structure/Calc.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -764,11 +764,7 @@ public static final void shift(Group group, Atom a) {
764764
}
765765

766766
/**
767-
<<<<<<< HEAD
768767
* Returns the centroid of the set of atoms.
769-
=======
770-
* Returns the center of mass of the set of atoms.
771-
>>>>>>> refs/heads/quaternion
772768
*
773769
* @param atomSet
774770
* a set of Atoms
@@ -799,6 +795,14 @@ public static final Atom getCentroid(Atom[] atomSet) {
799795

800796
}
801797

798+
/**
799+
* Returns the center of mass of the set of atoms. Atomic masses of the
800+
* Atoms are used.
801+
*
802+
* @param atomSet
803+
* a set of Atoms
804+
* @return an Atom representing the center of mass
805+
*/
802806
public static Atom centerOfMass(Atom[] points) {
803807
Atom center = new AtomImpl();
804808

0 commit comments

Comments
 (0)