|
Chunks
Moddable voxel sandbox for room-scale VR.
|
Simple curve that maps any value to a constant. More...
Public Member Functions | |
| ConstantCurve (float value) | |
| Constructs a new ConstantCurve with the given constant value. More... | |
| override float | OnGetValue (float t) |
| Always returns the constant value. More... | |
Public Member Functions inherited from Chunks.Curve | |
| float | GetValue (float t) |
| Maps a float value from the range [0.0, 1.0]. More... | |
| virtual int | GetValueInt (float t) |
| Maps a float value from the range [0.0, 1.0] to an integer. More... | |
Properties | |
| float | Value [get, set] |
| Constant value. More... | |
Simple curve that maps any value to a constant.
| Chunks.ConstantCurve.ConstantCurve | ( | float | value | ) |
Constructs a new ConstantCurve with the given constant value.
| value | Constant value |
|
virtual |
Always returns the constant value.
| t | Value in the range [0.0, 1.0] |
Implements Chunks.Curve.
|
getset |
Constant value.
1.8.10