godot_voxel/generators/graph/range_utility.h

20 lines
562 B
C

#ifndef RANGE_UTILITY_H
#define RANGE_UTILITY_H
#include "../../math/interval.h"
#include <core/image.h>
#include <modules/opensimplex/open_simplex_noise.h>
#include <scene/resources/curve.h>
Interval get_osn_range_2d(OpenSimplexNoise *noise, Interval x, Interval y);
Interval get_osn_range_3d(OpenSimplexNoise *noise, Interval x, Interval y, Interval z);
Interval get_curve_range(Curve &curve, uint8_t &is_monotonic_increasing);
Interval get_heightmap_range(Image &im);
#ifdef DEBUG_ENABLED
void test_osn_max_derivative();
#endif
#endif // RANGE_UTILITY_H