C# Class SimTelemetry.Objects.Limits

Show file Open project: nlhans/SimTelemetry

Public Methods

Method Description
Clamp ( double val, double min, double max ) : double
Clamp ( float val, float min, float max ) : float
Clamp ( int val, int min, int max ) : int
lClamp ( double val, double min ) : double
lClamp ( float val, float min ) : float
lClamp ( int val, int min ) : int
uClamp ( double val, double max ) : double
uClamp ( float val, float max ) : float
uClamp ( int val, int max ) : int

Method Details

Clamp() public static method

public static Clamp ( double val, double min, double max ) : double
val double
min double
max double
return double

Clamp() public static method

public static Clamp ( float val, float min, float max ) : float
val float
min float
max float
return float

Clamp() public static method

public static Clamp ( int val, int min, int max ) : int
val int
min int
max int
return int

lClamp() public static method

public static lClamp ( double val, double min ) : double
val double
min double
return double

lClamp() public static method

public static lClamp ( float val, float min ) : float
val float
min float
return float

lClamp() public static method

public static lClamp ( int val, int min ) : int
val int
min int
return int

uClamp() public static method

public static uClamp ( double val, double max ) : double
val double
max double
return double

uClamp() public static method

public static uClamp ( float val, float max ) : float
val float
max float
return float

uClamp() public static method

public static uClamp ( int val, int max ) : int
val int
max int
return int