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

Simple curve that maps any value to a constant. More...

Inheritance diagram for Chunks.ConstantCurve:
Chunks.Curve

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

Detailed Description

Simple curve that maps any value to a constant.

Constructor & Destructor Documentation

Chunks.ConstantCurve.ConstantCurve ( float  value)

Constructs a new ConstantCurve with the given constant value.

Parameters
valueConstant value

Member Function Documentation

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

Always returns the constant value.

Parameters
tValue in the range [0.0, 1.0]

Implements Chunks.Curve.

Property Documentation

float Chunks.ConstantCurve.Value
getset

Constant value.


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