projects
/
sixth-3d.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated copyright
[sixth-3d.git]
/
src
/
main
/
java
/
eu
/
svjatoslav
/
sixth
/
e3d
/
gui
/
UserRelativityTracker.java
diff --git
a/src/main/java/eu/svjatoslav/sixth/e3d/gui/UserRelativityTracker.java
b/src/main/java/eu/svjatoslav/sixth/e3d/gui/UserRelativityTracker.java
index
f50f6d9
..
ae6d464
100644
(file)
--- a/
src/main/java/eu/svjatoslav/sixth/e3d/gui/UserRelativityTracker.java
+++ b/
src/main/java/eu/svjatoslav/sixth/e3d/gui/UserRelativityTracker.java
@@
-1,22
+1,22
@@
/*
/*
- * Sixth - System for data storage, computation, exploration and interaction.
- * Copyright ©2012-2016, 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
* or later as published by the Free Software Foundation.
* 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.
+ *
*/
package eu.svjatoslav.sixth.e3d.gui;
*/
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.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 class UserRelativityTracker {
- p
ublic
final static int minimalSliceFactor = 5;
+ p
rivate
final static int minimalSliceFactor = 5;
public GeometryCoordinate center = new GeometryCoordinate();
public GeometryCoordinate right;
public GeometryCoordinate down;
public GeometryCoordinate center = new GeometryCoordinate();
public GeometryCoordinate right;
public GeometryCoordinate down;
@@
-57,8
+57,7
@@
public class UserRelativityTracker {
}
public double getDistanceToUser() {
}
public double getDistanceToUser() {
- return center.transformedCoordinate
- .getDistanceTo(Point3D.ZERO);
+ return center.transformedCoordinate.getVectorLength();
}
public double proposeSliceFactor() {
}
public double proposeSliceFactor() {