You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ygradient.h 472B

1234567891011121314151617181920212223242526
  1. /*
  2. * Prouces a Y axis gradient with -1.0 at start and 1.0 at finish
  3. */
  4. #pragma once
  5. #include "terrain/noisemodule.h"
  6. namespace vtk { namespace noise {
  7. class YGradient : public NoiseModule {
  8. public:
  9. YGradient();
  10. YGradient(const double& start, const double& end);
  11. void setStart(const double& start);
  12. void setEnd(const double& end);
  13. double get3D(const double& x, const double& y, const double& z);
  14. protected:
  15. double mStart;
  16. double mEnd;
  17. };
  18. }} //vtk::noise