Chunks
Moddable voxel sandbox for room-scale VR.
Public Member Functions | Properties | List of all members
Chunks.LinearCurve Class Reference

Simple curve that linearly interpolates between two values. More...

Inheritance diagram for Chunks.LinearCurve:
Chunks.Curve

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...
 

Detailed Description

Simple curve that linearly interpolates between two values.

Constructor & Destructor Documentation

Chunks.LinearCurve.LinearCurve ( float  min,
float  max 
)

Constructs a new LinearCurve with the given minimum and maximum values.

Parameters
minCurve value when t = 0
maxCurve value when t = 1

Member Function Documentation

override float Chunks.LinearCurve.OnGetValue ( float  t)
virtual

Linearly interpolates between Min and Max.

Parameters
tValue in the range [0.0, 1.0]

Implements Chunks.Curve.

Property Documentation

float Chunks.LinearCurve.Max
getset

Curve value when t = 1.

float Chunks.LinearCurve.Min
getset

Curve value when t = 0.


The documentation for this class was generated from the following file: