#include <stage.hh>

Public Member Functions

 Bounds ()
 
 Bounds (double min, double max)
 
double Constrain (double value)
 returns value, but no smaller than min and no larger than max.
 
BoundsLoad (Worldfile *wf, int section, const char *keyword)
 

Public Attributes

double max
 largest value in range, initially zero
 
double min
 smallest value in range, initially zero
 

Detailed Description

Bound a range of values, from min to max. min and max are initialized to zero.

Constructor & Destructor Documentation

◆ Bounds() [1/2]

Stg::Bounds::Bounds ( )
inline

◆ Bounds() [2/2]

Stg::Bounds::Bounds ( double min,
double max )
inline

Member Function Documentation

◆ Constrain()

double Bounds::Constrain ( double value)

returns value, but no smaller than min and no larger than max.

◆ Load()

Bounds & Bounds::Load ( Worldfile * wf,
int section,
const char * keyword )

Member Data Documentation

◆ max

double Stg::Bounds::max

largest value in range, initially zero

◆ min

double Stg::Bounds::min

smallest value in range, initially zero


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