update doc/*/world-generator.md

This commit is contained in:
MihailRis 2026-08-10 22:30:37 +03:00
parent ab0768be68
commit 93950ca3b1
2 changed files with 38 additions and 0 deletions

View file

@ -212,7 +212,26 @@ local map = Heightmap(width, height)
Operations apply to all height values.
```lua
-- Convert to absolute values
map:abs()
-- Round down
map:floor()
-- Round up
map:ceil()
-- Round to the nearest integer
map:round()
-- Sine of height values ​​(in radians)
map:sin()
-- Cosine of height values ​​(in radians)
map:cos()
-- Tangent of height values ​​(in radians)
map:tan()
```
Casts height values ​​to absolute.

View file

@ -215,7 +215,26 @@ local map = Heightmap(ширина, высота)
Операции применяются ко всем значениям высоты.
```lua
-- Приведение к абсолютным значениям
map:abs()
-- Округление к меньшему целому
map:floor()
-- Округление к большему целому
map:ceil()
-- Округление к ближайшему целому
map:round()
-- Синус от значений высот (в радианах)
map:sin()
-- Косинус от значений высот (в радианах)
map:cos()
-- Тангенс от значений высот (в радианах)
map:tan()
```
Приводит значения высот к абсолютным.