Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes
icl::math::LinearTransform1D Struct Reference

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

#include <LinearTransform1D.h>

List of all members.

Public Member Functions

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

Public Attributes

float m
 slope
float b
 offset

Detailed Description

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


Constructor & Destructor Documentation

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

base constructor with given parameters m and b

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

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

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


Member Data Documentation

offset

slope


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines