mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 03:29:44 -06:00
Add camera view direction to camera topic (#3741)
* Add camera view direction to camera topic * Add subsolar coordinates to topic --------- Co-authored-by: Alexander Bock <alexander.bock@liu.se> Co-authored-by: Ylva Selling <ylva.selling@gmail.com>
This commit is contained in:
@@ -71,6 +71,19 @@ glm::vec3 cartesianCoordinatesFromGeo(const SceneGraphNode& sgn, double latitude
|
||||
*/
|
||||
glm::dvec3 geoPositionFromCamera();
|
||||
|
||||
/**
|
||||
* Returns the camera view direction relative to the current anchor node as geodetic
|
||||
* coordinates. The returned value contains the latitude and longitude in degrees in the
|
||||
* x, and y-coordinate respectively.
|
||||
*/
|
||||
glm::dvec3 geoViewFromCamera();
|
||||
|
||||
/**
|
||||
* Return the coordinates where the sun is at its zenith at the current anchor at the
|
||||
* current time. The returned value contains the latitude and longitude in degrees.
|
||||
*/
|
||||
glm::dvec2 subSolarCoordinates();
|
||||
|
||||
/**
|
||||
* Returns the height of the camera relative to the provided SceneGraphNode \p sgn in
|
||||
* meters. If \p useHeightMap is provided as `true` and \p sgn is a globe with an existing
|
||||
|
||||
Reference in New Issue
Block a user