projects
/
sixth-3d.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated readability of the code.
[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
69a2947
..
48b1016
100644
(file)
--- a/
src/main/java/eu/svjatoslav/sixth/e3d/gui/UserRelativityTracker.java
+++ b/
src/main/java/eu/svjatoslav/sixth/e3d/gui/UserRelativityTracker.java
@@
-5,34
+5,34
@@
package eu.svjatoslav.sixth.e3d.gui;
import eu.svjatoslav.sixth.e3d.geometry.Point3D;
package eu.svjatoslav.sixth.e3d.gui;
import eu.svjatoslav.sixth.e3d.geometry.Point3D;
-import eu.svjatoslav.sixth.e3d.math.
GeometryCoordinate
;
-import eu.svjatoslav.sixth.e3d.math.
TransformPipe
;
+import eu.svjatoslav.sixth.e3d.math.
TransformsStack
;
+import eu.svjatoslav.sixth.e3d.math.
Vertex
;
public class UserRelativityTracker {
private final static int minimalSliceFactor = 5;
public class UserRelativityTracker {
private final static int minimalSliceFactor = 5;
- public
GeometryCoordinate center = new GeometryCoordinate
();
- public
GeometryCoordinate
right;
- public
GeometryCoordinate
down;
+ public
Vertex center = new Vertex
();
+ public
Vertex
right;
+ public
Vertex
down;
public UserRelativityTracker() {
}
public UserRelativityTracker() {
}
- public void analyze(final Transform
Pipe
transformPipe,
+ public void analyze(final Transform
sStack
transformPipe,
final RenderingContext renderingContext) {
final RenderingContext renderingContext) {
- center.
transform
(transformPipe, renderingContext);
+ center.
calculateLocationRelativeToViewer
(transformPipe, renderingContext);
if (right != null) {
if (right != null) {
- right.
transform
(transformPipe, renderingContext);
- down.
transform
(transformPipe, renderingContext);
+ right.
calculateLocationRelativeToViewer
(transformPipe, renderingContext);
+ down.
calculateLocationRelativeToViewer
(transformPipe, renderingContext);
}
}
public void enableOrientationTracking() {
}
}
public void enableOrientationTracking() {
- right = new
GeometryCoordinate
(new Point3D(10, 0, 0));
- down = new
GeometryCoordinate
(new Point3D(0, 10, 0));
+ right = new
Vertex
(new Point3D(10, 0, 0));
+ down = new
Vertex
(new Point3D(0, 10, 0));
}
public double getAngleXY() {
}
public double getAngleXY() {