]> git.localhorst.tv Git - blobs.git/blobdiff - src/world/Planet.hpp
hooray for könig lookup
[blobs.git] / src / world / Planet.hpp
index 237159994c47da1c9dbd1e23bd235ffd2214cbb0..2034b8dc4c787b4f30e6a52eb87389402e1c1f95 100644 (file)
@@ -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;