/*
- * Sixth 3D engine. Copyright ©2012-2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ * Sixth 3D engine. Copyright ©2012-2019, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 3 of the GNU Lesser General Public License
package eu.svjatoslav.sixth.e3d.gui;
-import eu.svjatoslav.sixth.e3d.geometry.GeometryCoordinate;
import eu.svjatoslav.sixth.e3d.geometry.Point3D;
-import eu.svjatoslav.sixth.e3d.geometry.TransformPipe;
+import eu.svjatoslav.sixth.e3d.math.GeometryCoordinate;
+import eu.svjatoslav.sixth.e3d.math.TransformPipe;
public class UserRelativityTracker {
- public final static int minimalSliceFactor = 5;
+ private final static int minimalSliceFactor = 5;
public GeometryCoordinate center = new GeometryCoordinate();
public GeometryCoordinate right;
public GeometryCoordinate down;
}
public double getDistanceToUser() {
- return center.transformedCoordinate
- .getDistanceTo(Point3D.ZERO);
+ return center.transformedCoordinate.getVectorLength();
}
public double proposeSliceFactor() {