/*
- * Sixth 3D engine. Copyright ©2012-2016, 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
- * or later as published by the Free Software Foundation.
- *
+ * Sixth 3D engine. Author: Svjatoslav Agejenko.
+ * This project is released under Creative Commons Zero (CC0) 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() {