Chunks
Moddable voxel sandbox for room-scale VR.
Public Member Functions | List of all members
Chunks.Curve Class Referenceabstract

Base class for types that define a mapping from the range [0.0, 1.0] to another value. More...

Inheritance diagram for Chunks.Curve:
Chunks.ConstantCurve Chunks.LinearCurve

Public Member Functions

float GetValue (float t)
 Maps a float value from the range [0.0, 1.0]. More...
 
abstract float OnGetValue (float t)
 Implement this method to define the curve mapping. More...
 
virtual int GetValueInt (float t)
 Maps a float value from the range [0.0, 1.0] to an integer. More...
 

Detailed Description

Base class for types that define a mapping from the range [0.0, 1.0] to another value.

Member Function Documentation

float Chunks.Curve.GetValue ( float  t)

Maps a float value from the range [0.0, 1.0].

Parameters
tValue in the range [0.0, 1.0]
virtual int Chunks.Curve.GetValueInt ( float  t)
virtual

Maps a float value from the range [0.0, 1.0] to an integer.

Parameters
tValue in the range [0.0, 1.0]
abstract float Chunks.Curve.OnGetValue ( float  t)
pure virtual

Implement this method to define the curve mapping.

Parameters
tValue in the range [0.0, 1.0]

Implemented in Chunks.LinearCurve, and Chunks.ConstantCurve.


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