GEOMETRY-119: adding Vectors.normalizeOrNull() method; scaling vectors if needed... 143/head
authorMatt Juntunen <mattjuntunen@apache.org>
Wed, 7 Apr 2021 12:03:35 +0000 (08:03 -0400)
committerMatt Juntunen <mattjuntunen@apache.org>
Thu, 8 Apr 2021 01:10:33 +0000 (21:10 -0400)
commitea68dfb0093aace23d856970b32e2b7f0941e425
treeb53b9c6aedc35e5776b0e0b9dfd383d91fd01344
parent3cff384ba107116b07b518c28d772c60dfc6f7c6
GEOMETRY-119: adding Vectors.normalizeOrNull() method; scaling vectors if needed during normalization
13 files changed:
commons-geometry-core/src/main/java/org/apache/commons/geometry/core/Vector.java
commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/internal/Vectors.java
commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/oned/Vector1D.java
commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/threed/Vector3D.java
commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/threed/rotation/QuaternionRotation.java
commons-geometry-euclidean/src/main/java/org/apache/commons/geometry/euclidean/twod/Vector2D.java
commons-geometry-euclidean/src/test/java/org/apache/commons/geometry/euclidean/internal/VectorsTest.java
commons-geometry-euclidean/src/test/java/org/apache/commons/geometry/euclidean/oned/Vector1DTest.java
commons-geometry-euclidean/src/test/java/org/apache/commons/geometry/euclidean/threed/Vector3DTest.java
commons-geometry-euclidean/src/test/java/org/apache/commons/geometry/euclidean/twod/Vector2DTest.java
commons-geometry-examples/examples-jmh/src/main/java/org/apache/commons/geometry/examples/jmh/euclidean/VectorPerformance.java
commons-geometry-io-euclidean/src/main/java/org/apache/commons/geometry/io/euclidean/threed/obj/PolygonObjParser.java
commons-geometry-io-euclidean/src/main/java/org/apache/commons/geometry/io/euclidean/threed/stl/StlUtils.java