Chunks
Moddable voxel sandbox for room-scale VR.
|
Simple curve that linearly interpolates between two values. More...
Public Member Functions | |
LinearCurve (float min, float max) | |
Constructs a new LinearCurve with the given minimum and maximum values. More... | |
override float | OnGetValue (float t) |
Linearly interpolates between Min and Max. 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 | Min [get, set] |
Curve value when t = 0. More... | |
float | Max [get, set] |
Curve value when t = 1. More... | |
Simple curve that linearly interpolates between two values.
Chunks.LinearCurve.LinearCurve | ( | float | min, |
float | max | ||
) |
Constructs a new LinearCurve with the given minimum and maximum values.
|
virtual |
Linearly interpolates between Min and Max.
t | Value in the range [0.0, 1.0] |
Implements Chunks.Curve.
|
getset |
Curve value when t = 1.
|
getset |
Curve value when t = 0.