Maths.h 376 B

1234567891011
  1. #pragma once
  2. #include <glm/vec3.hpp>
  3. #include <random>
  4. namespace WallpaperEngine::Maths {
  5. float randomFloat (std::mt19937& rng, float min, float max);
  6. glm::vec3 randomVec3 (std::mt19937& rng, const glm::vec3& min, const glm::vec3& max);
  7. float lerp (float t, float a, float b);
  8. float fadeValue (float life, float startTime, float endTime, float startValue, float endValue);
  9. }