Methods
# (static) constant(constant) → {clay.Value}
- Source:
Create a constant 1d value generator
Parameters:
Name | Type | Description |
---|---|---|
constant |
number |
Returns:
- Type
- clay.Value
# (static) random1D(min, max) → {clay.Value}
- Source:
Create a random 1d value generator
Parameters:
Name | Type | Description |
---|---|---|
min |
number | |
max |
number |
Returns:
- Type
- clay.Value
# (static) random2D(min, max) → {clay.Value}
- Source:
Create a random 2d value generator
Parameters:
Name | Type | Description |
---|---|---|
min |
clay.Vector2 | |
max |
clay.Vector2 |
Returns:
- Type
- clay.Value
# (static) random3D(min, max) → {clay.Value}
- Source:
Create a random 3d value generator
Parameters:
Name | Type | Description |
---|---|---|
min |
clay.Vector3 | |
max |
clay.Vector3 |
Returns:
- Type
- clay.Value
# (static) vector(vector) → {clay.Value}
- Source:
Create a constant vector value(2d or 3d) generator
Parameters:
Name | Type | Description |
---|---|---|
vector |
clay.Vector2 | clay.Vector3 |
Returns:
- Type
- clay.Value
# get(outopt) → {number|clay.Vector2|clay.Vector3}
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
out |
number | clay.Vector2 | clay.Vector3 |
<optional> |
Returns:
- Type
- number | clay.Vector2 | clay.Vector3