BiomInterpolator.h 826 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include <ReferenceCounter.h>
  3. #include "Noise.h"
  4. class Block;
  5. class BiomInterpolator : public virtual Framework::ReferenceCounter
  6. {
  7. public:
  8. /// <summary>
  9. /// interpolates two different blocks
  10. /// the block with a heigher weight has a heigher propability to be returned
  11. /// the block that is not returned will be deleted
  12. /// </summary>
  13. /// <param name="a">the block with weight aWeight</param>
  14. /// <param name="b">the block with weight bWeight</param>
  15. /// <param name="aWeight">the weight for block a</param>
  16. /// <param name="bWeight">the weight for block b</param>
  17. /// <param name="zNoise">the noise to use</param>
  18. /// <returns>either a or b</returns>
  19. virtual Block *interpolateBlocks( Block *a, Block *b, double aWeight, double bWeight, Noise *zNoise ) = 0;
  20. };