Fishnet 2.0.1
Framework for Graph-Based Analysis of GIS Vector Data
Loading...
Searching...
No Matches
Normalize.hpp File Reference
#include <cmath>
#include <fishnet/NumericConcepts.hpp>
#include <type_traits>
#include <stdexcept>
Include dependency graph for Normalize.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  fishnet
 
namespace  fishnet::math
 

Functions

template<Number ValueType, Number BoundType>
static auto fishnet::math::normalize (const ValueType value, BoundType upperBound)
 Normalizes any value into the range: [0,upperBound)
 
static auto fishnet::math::normalize (Number auto value, Number auto lowerBound, Number auto upperBound)
 Normalizes value in the range [lowerBound,upperBound)