vkmEngine 1.0.15
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
Vkm::Engine::Math::FloatRange Struct Reference

A value drawn once, uniformly between min and max; equal ends are a constant. More...

#include <curve.h>

Public Member Functions

float draw (Rng &rng) const
 One draw from the range.

Detailed Description

A value drawn once, uniformly between min and max; equal ends are a constant.

Member Function Documentation

◆ draw()

float Vkm::Engine::Math::FloatRange::draw ( Rng & rng) const
inline

One draw from the range.

Parameters
rngThe stream it is drawn from: a constant draws nothing, so it never moves the stream.
Returns
A value in [min, max].

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