summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Froehlich <Mathias.Froehlich@web.de>2012-01-29 20:15:21 +0100
committerMathias Froehlich <Mathias.Froehlich@web.de>2012-02-11 12:41:42 +0100
commit4c541d90a9d674976c2ac1bb60ec5f4187369e86 (patch)
tree8f3d539f353fd8afb1bafd74c8f2c02f3803da79
parent05848d8fc64caad0151552fa67f43ae6c73a5fad (diff)
Different initial position, print position.
-rw-r--r--Main.cpp19
1 files changed, 16 insertions, 3 deletions
diff --git a/Main.cpp b/Main.cpp
index 149b669..2c0765b 100644
--- a/Main.cpp
+++ b/Main.cpp
@@ -689,9 +689,14 @@ vec3f s(0.0, -1.0, 0.0);
double lon = 0.0;
double lat = 0.0;
-double theta = 0.0;
-double phi = 0.0;
-double d = Rg;
+
+double theta = M_PI/2;
+double phi = M_PI/2;
+double d = 500;
+
+// double theta = 0.0;
+// double phi = 0.0;
+// double d = Rg;
vec3d position;
mat4d view;
@@ -721,6 +726,14 @@ void updateView()
position.normalize(Rg + 0.01);
}
+ std::cout << "lon = " << lon*180/M_PI
+ << ", lat = " << lat*180/M_PI
+ << ", alt = " << position.length() - Rg
+ << ", d = " << d
+ << ", theta = " << theta*180/M_PI
+ << ", phi = " << phi*180/M_PI
+ << std::endl;
+
view = mat4d(cx.x, cx.y, cx.z, 0,
cy.x, cy.y, cy.z, 0,
cz.x, cz.y, cz.z, 0,