mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-03 01:09:34 -05:00
Fixed readTLE
This commit is contained in:
committed by
ElonOlsson
parent
0d838c2160
commit
fc4f3fc6e9
@@ -21,7 +21,7 @@
|
||||
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE *
|
||||
* OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
|
||||
****************************************************************************************/
|
||||
|
||||
/*
|
||||
#include <modules/space/rendering/elonstest.h>
|
||||
#include <ghoul/logging/logmanager.h>
|
||||
|
||||
@@ -628,6 +628,7 @@ namespace openspace {
|
||||
// );
|
||||
// // KeplerTranslation keplerTranslation(orbit);
|
||||
// const double period = orbit.period();
|
||||
|
||||
for (size_t i = 0; i <= _nSegments; ++i) {
|
||||
size_t index = orbitIndex * nVerticesPerOrbit + i;
|
||||
|
||||
@@ -636,7 +637,7 @@ namespace openspace {
|
||||
|
||||
// positionAtTime.time = Time(orbit.epoch + timeOffset);
|
||||
|
||||
glm::vec3 position = calculatePosition(Time(orbit.epoch + timeOffset), orbit.epoch);
|
||||
// glm::vec3 position = calculatePosition(Time(orbit.epoch + timeOffset), orbit.epoch);
|
||||
|
||||
_vertexBufferData[index].x = position.x;
|
||||
_vertexBufferData[index].y = position.y;
|
||||
@@ -683,3 +684,4 @@ namespace openspace {
|
||||
}
|
||||
|
||||
}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user