TriEngine  v0.0.16
General-purpose engine in C#/OpenGL
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events
TriDevs.TriEngine.Extensions.DoubleExtensions Class Reference

Extensions for System.Double. More...

Static Public Member Functions

static double Clamp (this double value, double min, double max)
 Clamps the specified double between a minimum and maximum value. More...
 

Detailed Description

Extensions for System.Double.

Member Function Documentation

static double TriDevs.TriEngine.Extensions.DoubleExtensions.Clamp ( this double  value,
double  min,
double  max 
)
static

Clamps the specified double between a minimum and maximum value.

Parameters
valueValue to clamp.
minIf the specified double is below this value, then this will be returned.
maxIf the specified double is above this value, then this will be returned.
Returns
The clamped value of the double.
39  {
40  return Helpers.Math.Clamp(value, min, max);
41  }

Here is the call graph for this function:

Here is the caller graph for this function:


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