Image Component Library (ICL)
Public Member Functions | Public Attributes | List of all members
icl::math::LinearTransform1D Struct Reference

A standard linear mapping class for the 1D case f(x) = m * x + b. More...

#include <LinearTransform1D.h>

Public Member Functions

 LinearTransform1D (float m=0, float b=0)
 base constructor with given parameters m and b More...
 
template<class T >
 LinearTransform1D (const utils::Range< T > &s, const utils::Range< T > &d)
 spedical constructor template with given source and destination range More...
 
float operator() (float x) const
 applies the mapping to a given x -> f(x) = m * x + b More...
 

Public Attributes

float m
 slope More...
 
float b
 offset More...
 

Detailed Description

A standard linear mapping class for the 1D case f(x) = m * x + b.

Constructor & Destructor Documentation

◆ LinearTransform1D() [1/2]

icl::math::LinearTransform1D::LinearTransform1D ( float  m = 0,
float  b = 0 
)
inline

base constructor with given parameters m and b

◆ LinearTransform1D() [2/2]

template<class T >
icl::math::LinearTransform1D::LinearTransform1D ( const utils::Range< T > &  s,
const utils::Range< T > &  d 
)
inline

spedical constructor template with given source and destination range

Member Function Documentation

◆ operator()()

float icl::math::LinearTransform1D::operator() ( float  x) const
inline

applies the mapping to a given x -> f(x) = m * x + b

Member Data Documentation

◆ b

float icl::math::LinearTransform1D::b

offset

◆ m

float icl::math::LinearTransform1D::m

slope


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