X-Git-Url: http://git.localhorst.tv/?p=blobs.git;a=blobdiff_plain;f=src%2Fworld%2FPlanet.hpp;h=2034b8dc4c787b4f30e6a52eb87389402e1c1f95;hp=237159994c47da1c9dbd1e23bd235ffd2214cbb0;hb=0e061ce526fe46dd3e894223e5d646eb2e30f826;hpb=ee77237c575f255bb04cdae48c89956aa734c811 diff --git a/src/world/Planet.hpp b/src/world/Planet.hpp index 2371599..2034b8d 100644 --- a/src/world/Planet.hpp +++ b/src/world/Planet.hpp @@ -36,11 +36,11 @@ public: public: /// surface normal - glm::dvec3 NormalAt(const glm::dvec3 &p) const noexcept { return normalize(p); } + glm::dvec3 NormalAt(const glm::dvec3 &p) const noexcept { return glm::normalize(p); } /// height over surface - double ElevationAt(const glm::dvec3 &p) const noexcept { return length(p) - Radius(); } + double ElevationAt(const glm::dvec3 &p) const noexcept { return glm::length(p) - Radius(); } /// distance to planet center - double DistanceAt(const glm::dvec3 &p) const noexcept { return length(p); } + double DistanceAt(const glm::dvec3 &p) const noexcept { return glm::length(p); } /// get ground tile Tile &TileAt(const glm::dvec3 &) noexcept;