mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 22:41:49 +00:00
update doc/*/world-generator.md
This commit is contained in:
parent
ab0768be68
commit
93950ca3b1
2 changed files with 38 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue