You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ma...@apache.org on 2021/06/12 13:47:33 UTC

[commons-geometry] branch master updated: using commons-numbers Norm enum

This is an automated email from the ASF dual-hosted git repository.

mattjuntunen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-geometry.git


The following commit(s) were added to refs/heads/master by this push:
     new f557766  using commons-numbers Norm enum
f557766 is described below

commit f5577663ebbf9e53b7b8b3178e6ac732f9c10fca
Author: Matt Juntunen <ma...@apache.org>
AuthorDate: Sat Jun 12 08:04:51 2021 -0400

    using commons-numbers Norm enum
---
 .../java/org/apache/commons/geometry/euclidean/internal/Vectors.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/internal/Vectors.java b/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/internal/Vectors.java
index 8394b21..817e0b0 100644
--- a/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/internal/Vectors.java
+++ b/commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/internal/Vectors.java
@@ -17,7 +17,7 @@
 package org.apache.commons.geometry.euclidean.internal;
 
 import org.apache.commons.geometry.core.Vector;
-import org.apache.commons.numbers.core.Norms;
+import org.apache.commons.numbers.core.Norm;
 
 /** This class consists exclusively of static vector utility methods.
  */
@@ -104,7 +104,7 @@ public final class Vectors {
      * @see <a href="http://mathworld.wolfram.com/L2-Norm.html">L2 Norm</a>
      */
     public static double norm(final double x1, final double x2, final double x3) {
-        return Norms.euclidean(x1, x2, x3);
+        return Norm.EUCLIDEAN.of(x1, x2, x3);
     }
 
     /** Get the square of the L<sub>2</sub> norm (also known as the Euclidean norm)