No tabs.
Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/a61fde99 Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/a61fde99 Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/a61fde99 Branch: refs/heads/master Commit: a61fde99657c1b9d11e8eaa682181ea59e65814b Parents: 3b7deb9 Author: Gilles <er...@apache.org> Authored: Mon Dec 25 10:00:36 2017 +0100 Committer: Gilles <er...@apache.org> Committed: Mon Dec 25 10:00:36 2017 +0100 ---------------------------------------------------------------------- .../math4/geometry/euclidean/oned/SubOrientedPoint.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-math/blob/a61fde99/src/main/java/org/apache/commons/math4/geometry/euclidean/oned/SubOrientedPoint.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/geometry/euclidean/oned/SubOrientedPoint.java b/src/main/java/org/apache/commons/math4/geometry/euclidean/oned/SubOrientedPoint.java index 641d73e..b6c90e9 100644 --- a/src/main/java/org/apache/commons/math4/geometry/euclidean/oned/SubOrientedPoint.java +++ b/src/main/java/org/apache/commons/math4/geometry/euclidean/oned/SubOrientedPoint.java @@ -59,12 +59,12 @@ public class SubOrientedPoint extends AbstractSubHyperplane<Euclidean1D, Euclide /** {@inheritDoc} */ @Override public SplitSubHyperplane<Euclidean1D> split(final Hyperplane<Euclidean1D> hyperplane) { - final OrientedPoint thisHyperplane = (OrientedPoint) getHyperplane(); - final double global = hyperplane.getOffset(thisHyperplane.getLocation()); - - // use the tolerance value from our parent hyperplane to determine equality + final OrientedPoint thisHyperplane = (OrientedPoint) getHyperplane(); + final double global = hyperplane.getOffset(thisHyperplane.getLocation()); + + // use the tolerance value from our parent hyperplane to determine equality final double tolerance = thisHyperplane.getTolerance(); - + if (global < -tolerance) { return new SplitSubHyperplane<Euclidean1D>(null, this); } else if (global > tolerance) {