Into

Modules

Documentation

classPii::Bound

#include <PiiMathFunctional.h>

A unary function that bounds its argument to a predefined range.

Inherits Pii::UnaryFunction< T >

Description

If the argument is less than min, min will be returned. If the argument is larger than max, max will be returned. Otherwise, the argument will be returned unchanged.

Constructors and destructor

(
  • T min
  • T max
)

Public member functions

T
(
  • const T & value
)

Function details

  • Bound

    (
    • T min
    • T max
    )
    [inline]
  • T operator()

    (
    • const T & value
    )
    [inline]
Notes (0)

Add a note

Not a single note added yet. Be the first, add yours.