Noise.h 648 B

1234567891011121314151617181920
  1. #pragma once
  2. #include <ReferenceCounter.h>
  3. #include <Vec3.h>
  4. class Noise : public virtual Framework::ReferenceCounter
  5. {
  6. public:
  7. Noise();
  8. virtual int getSeed() const = 0;
  9. /// <summary>
  10. /// get the noise value at a certain destination
  11. /// </summary>
  12. /// <param name="x">the x coord of the noice value</param>
  13. /// <param name="y">the y coord of the noice value</param>
  14. /// <param name="z">the z coord of the noice value</param>
  15. /// <returns>the noise value scaled to a range from 0 to 1</returns>
  16. virtual double getNoise(double x, double y, double z) = 0;
  17. double getNoise(Framework::Vec3<double>& pos);
  18. };