]> git.localhorst.tv Git - blobs.git/blobdiff - src/world/Body.hpp
real days
[blobs.git] / src / world / Body.hpp
index d90806584b0e43d37f1202d0dcddce7e8afe3d23..6f85efd97b4946db46f224ef143e9b91ea1ec1b5 100644 (file)
@@ -78,6 +78,10 @@ public:
        double GravitationalParameter() const noexcept;
        double OrbitalPeriod() const noexcept;
        double RotationalPeriod() const noexcept;
+       /// day length relative to parent, not neccessarily a sun
+       /// gives absolute value in seconds
+       /// returns sidereal day for parent-less bodies
+       double DayLength() const noexcept;
        double SphereOfInfluence() const noexcept;
 
        math::Sphere CollisionBounds() const noexcept { return math::Sphere{ glm::dvec3(0.0), Radius() }; }