Functor class to scale by s and translate (offset) by t.
More...
#include <vil_math.h>
Functor class to scale by s and translate (offset) by t.
- Note
- Watch out for overflow, especially for smaller types.
- See also
- vil_math_scale_and_offset_values()
Definition at line 477 of file vil_math.h.
◆ vil_math_scale_and_translate_functor()
| vil_math_scale_and_translate_functor::vil_math_scale_and_translate_functor |
( |
const double |
s, |
|
|
const double |
t |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
| s | Scaling. |
| t | Translation (offset). |
Definition at line 483 of file vil_math.h.
◆ operator()() [1/7]
| vxl_byte vil_math_scale_and_translate_functor::operator() |
( |
vxl_byte |
x | ) |
const |
|
inline |
◆ operator()() [2/7]
| unsigned vil_math_scale_and_translate_functor::operator() |
( |
unsigned |
x | ) |
const |
|
inline |
◆ operator()() [3/7]
| short vil_math_scale_and_translate_functor::operator() |
( |
short |
x | ) |
const |
|
inline |
◆ operator()() [4/7]
| int vil_math_scale_and_translate_functor::operator() |
( |
int |
x | ) |
const |
|
inline |
◆ operator()() [5/7]
| float vil_math_scale_and_translate_functor::operator() |
( |
float |
x | ) |
const |
|
inline |
◆ operator()() [6/7]
| double vil_math_scale_and_translate_functor::operator() |
( |
double |
x | ) |
const |
|
inline |
◆ operator()() [7/7]
| std::complex<double> vil_math_scale_and_translate_functor::operator() |
( |
std::complex< double > |
x | ) |
const |
|
inline |
◆ s_
| double vil_math_scale_and_translate_functor::s_ |
|
private |
◆ t_
| double vil_math_scale_and_translate_functor::t_ |
|
private |
The documentation for this class was generated from the following file: