This is an automated email from the ASF dual-hosted git repository. erans pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-numbers.git
commit 50cf08d973fcf5956467a4936d3c25598d6576ce Author: Gilles Sadowski <[email protected]> AuthorDate: Tue Dec 11 12:01:35 2018 +0100 NUMBERS-80: Method rename. --- .../main/java/org/apache/commons/numbers/quaternion/Quaternion.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commons-numbers-quaternion/src/main/java/org/apache/commons/numbers/quaternion/Quaternion.java b/commons-numbers-quaternion/src/main/java/org/apache/commons/numbers/quaternion/Quaternion.java index 605dadb..b1d7f7d 100644 --- a/commons-numbers-quaternion/src/main/java/org/apache/commons/numbers/quaternion/Quaternion.java +++ b/commons-numbers-quaternion/src/main/java/org/apache/commons/numbers/quaternion/Quaternion.java @@ -270,7 +270,7 @@ public final class Quaternion implements Serializable { * @return the norm. */ public double norm() { - return Math.sqrt(norm2()); + return Math.sqrt(normSq()); } /** @@ -278,7 +278,7 @@ public final class Quaternion implements Serializable { * * @return the square of the norm. */ - public double norm2() { + public double normSq() { return w * w + x * x + y * y + @@ -396,7 +396,7 @@ public final class Quaternion implements Serializable { * @throws IllegalArgumentException if the norm (squared) of the quaternion is zero. */ public Quaternion inverse() { - final double squareNorm = norm2(); + final double squareNorm = normSq(); if (squareNorm < Precision.SAFE_MIN) { throw new IllegalStateException(ZERO_NORM_MSG); }
