载入中...
搜索中...
未找到
#include "procgen/heightmap/TerrainDerivedMap.h"#include "procgen/heightmap/TerrainRasterInternal.h"#include <numbers>命名空间 | |
| namespace | eve |
| Build metadata (engine git commit, build time, third-party version). | |
| namespace | eve::procgen |
函数 | |
| Result< float > | eve::procgen::sampleTerrainHeightmapSafe (const Heightmap &source, int x, int z) |
| Read a finite heightmap at an integer coordinate clamped to its nearest border. | |
| Result< float > | eve::procgen::sampleTerrainHeightmapNormalized (const Heightmap &source, float x, float z) |
| Read Pcg HeightMap's normalized bilinear sample using x*width and z*depth coordinates. | |
| Result< bool > | eve::procgen::terrainHeightmapHasData (const Heightmap &source) |
| Return whether a heightmap contains a valid positive-size sample array. | |
| Result< bool > | eve::procgen::terrainHeightmapIsPowerOfTwo (const Heightmap &source) |
| Return whether both positive heightmap dimensions are powers of two; malformed storage fails. | |
| Result< int > | eve::procgen::generateTerrainHeightmapCurvature (Heightmap &target, const Heightmap &source, TerrainHeightmapCurvature mode) |
| Derive Pcg HeightMap.CurvatureMap's normalized differential curvature. | |
| Result< int > | eve::procgen::generateTerrainHeightmapAspect (Heightmap &target, const Heightmap &source, TerrainHeightmapAspect mode) |
| Derive Pcg HeightMap.Aspect's aspect, northerness, or easterness raster. | |
| Result< int > | eve::procgen::filterTerrainHeightmapNeighborhood (Heightmap &target, const Heightmap &source, int radius, TerrainHeightmapNeighborhood mode) |
| Apply Pcg HeightMap.DeNoise, GrowEdges, or ShrinkEdges in source traversal order. | |
| Result< int > | eve::procgen::smoothTerrainHeightmap (Heightmap &target, const Heightmap &source, int iterations) |
| Apply Pcg HeightMap.Smooth's in-place four-neighbor passes. | |
| Result< int > | eve::procgen::smoothTerrainHeightmapRadius (Heightmap &target, const Heightmap &source, int radius) |
| Apply Pcg HeightMap.SmoothRadius's scaled sliding-window filter, including its first-row omission. | |
| Result< int > | eve::procgen::convolveTerrainHeightmap (Heightmap &target, const Heightmap &source, const Heightmap &kernel) |
| Apply Pcg HeightMap.Convolve with an odd square kernel and source-order in-place feedback. | |
| Result< int > | eve::procgen::generateTerrainHeightmapSlope (Heightmap &target, const Heightmap &source) |
| Generate Pcg HeightMap.SlopeMap's normalized gradient magnitude. | |
| Result< int > | eve::procgen::quantizeTerrainHeightmap (Heightmap &target, const Heightmap &source, float divisor) |
| Quantize every sample using Pcg HeightMap.Quantize's Mathf.Round rule. | |
| Result< int > | eve::procgen::applyTerrainHeightmapScalarArithmetic (Heightmap &target, const Heightmap &source, float operand, TerrainHeightmapArithmetic operation, bool clampResult, float minValue, float maxValue) |
| Apply a scalar Pcg HeightMap arithmetic operation with optional clamping. | |
| Result< int > | eve::procgen::applyTerrainHeightmapRasterArithmetic (Heightmap &target, const Heightmap &source, const Heightmap &operand, TerrainHeightmapArithmetic operation, bool clampResult, float minValue, float maxValue) |
| Apply a raster Pcg HeightMap arithmetic operation, resampling a differently sized operand. | |
| Result< int > | eve::procgen::lerpTerrainHeightmap (Heightmap &target, const Heightmap &source, const Heightmap &values, const Heightmap &mask) |
| Lerp source toward values under a mask using Pcg's clamped Mathf.Lerp semantics. | |
| Result< int > | eve::procgen::transformTerrainHeightmap (Heightmap &target, const Heightmap &source, TerrainHeightmapTransform transform, float parameter) |
| Apply Pcg Invert, Normalise, Power, or Contrast to a finite heightmap. | |
| Result< int > | eve::procgen::copyTerrainHeightmap (Heightmap &target, const Heightmap &source, TerrainHeightmapCopy mode) |
| Copy or conditionally merge a Pcg heightmap, resampling when dimensions differ. | |
| Result< int > | eve::procgen::copyTerrainHeightmapClamped (Heightmap &target, const Heightmap &source, float minValue, float maxValue) |
| Copy a Pcg heightmap with inclusive output clamping and normalized resampling. | |
| Result< int > | eve::procgen::flipTerrainHeightmap (Heightmap &target, const Heightmap &source) |
| Transpose a Pcg HeightMap exactly as HeightMap.Flip does. | |
| Result< double > | eve::procgen::measureTerrainHeightmap (const Heightmap &source, TerrainHeightmapMeasure measure) |
| Measure Pcg height range, sum, average, or scanner base level from current samples. | |
| Result< int > | eve::procgen::quantizeTerrainHeightmapTerraces (Heightmap &target, const Heightmap &source, const Heightmap &startHeights, const Heightmap &curves) |
| Apply Pcg's curve-driven Quantize overload using one sampled curve per raster row. | |
| Result< double > | eve::procgen::measureTerrainHeightmapSlope (const Heightmap &source, float x, float y, TerrainHeightmapSlopeQuery mode) |
| Evaluate one of Pcg HeightMap's three point-slope formulas. | |
| Result< int > | eve::procgen::fillTerrainHeightmap (Heightmap &target, float value) |
| Fill a finite Pcg heightmap with one value clamped to [0,1]. | |
| Result< int > | eve::procgen::setTerrainHeightmapSafe (Heightmap &target, int x, int y, float value) |
| Set one sample after clamping its coordinates to the nearest border. | |
| Result< int > | eve::procgen::setTerrainHeightmapRow (Heightmap &target, int rowX, const Heightmap &values) |
| Set Pcg's fixed-X row from a one-dimensional strip. | |
| Result< int > | eve::procgen::setTerrainHeightmapColumn (Heightmap &target, int columnZ, const Heightmap &values) |
| Set Pcg's fixed-Z column from a one-dimensional strip. | |
| Result< int > | eve::procgen::resetTerrainHeightmap (Heightmap &target) |
| Reset a heightmap to Pcg's empty zero-by-zero state. | |