API Guides > ConceptRT 3.x

Detailed Description

Functions

template<class NumericalType >
NumericalType BoundedValue (NumericalType value, NumericalType lowerBound, NumericalType upperBound)
 Bounded value. More...
 
Int32 Round (Float64 x)
 Rounds. More...
 
template<class NumericalType >
bool InRange (NumericalType value, NumericalType min, NumericalType max, bool strict=false)
 In range More...
 

Function Documentation

template< class NumericalType > NumericalType BoundedValue ( NumericalType  value,
NumericalType  lowerBound,
NumericalType  upperBound 
)

Bounded value.

Parameters
valueThe value.
lowerBoundThe lower bound.
upperBoundThe upper bound.
Returns
The bounded value.
template< class NumericalType > bool InRange ( NumericalType  value,
NumericalType  min,
NumericalType  max,
bool  strict = false 
)

In range

Parameters
valueThe value.
minThe minimum.
maxThe maximum.
strict(optional) Value strictly inside the bounds.
Returns
.
Int32 Round ( Float64  x)

Rounds.

Parameters
xThe value to round.
Returns
The rounded value as an integer.