ScalarFunctionOpCode

Description

[SemanticEnum]
enum Tinman.Terrain.Procedural.ScalarFunctionOpCode

Binary and unary operators for scalar noise functions.

Public / Constants

Abs

public constant Abs → (0:int32)

| a |

Add

public constant Add → (1:int32)

a + b

Atan

public constant Atan → (2:int32)

atan(a)

Div

public constant Div → (3:int32)

a / b

Log

public constant Log → (4:int32)

log(a)

Max

public constant Max → (5:int32)

max(a, b)

Min

public constant Min → (6:int32)

min(a, b)

Mul

public constant Mul → (7:int32)

a * b

Neg

public constant Neg → (8:int32)

-a

Pow

public constant Pow → (9:int32)

a ^ b

Recip

public constant Recip → (10:int32)

1 / a

Sin

public constant Sin → (11:int32)

sin(a)

Sub

public constant Sub → (12:int32)

a - b

Sqr

public constant Sqr → (13:int32)

a * a

Sqrt

public constant Sqrt → (14:int32)

a ^ 0.5