|
lsst.geom
16.0-10-g230e10e+8
|
A 1-d affine transform that can be used to map one interval to another. More...
#include <Scaling1d.h>
Public Member Functions | |
| Scaling1d (double scale, double shift) noexcept | |
| Construct from the given multiplicative scale and additive shift. More... | |
| Scaling1d (Scaling1d const &) noexcept=default | |
| Default copy constructor. More... | |
| Scaling1d (Scaling1d &&) noexcept=default | |
| Default move constructor. More... | |
| Scaling1d & | operator= (Scaling1d const &) noexcept=default |
| Default copy assignment. More... | |
| Scaling1d & | operator= (Scaling1d &&) noexcept=default |
| Default move assignment. More... | |
| double | applyForward (double x) const noexcept |
| Apply the transform in the forward direction. More... | |
| double | applyInverse (double y) const noexcept |
| Apply the inverse of the forward transform;. More... | |
| double | getScale () const noexcept |
| Return the multiplicative scaling. More... | |
| double | getShift () const noexcept |
| Return the additive shift. More... | |
| Scaling1d | inverted () const noexcept |
| Invert the transform. More... | |
| Scaling1d | then (Scaling1d const &second) const noexcept |
| Compose two transforms. More... | |
A 1-d affine transform that can be used to map one interval to another.
The transform is represented as an additive shift followed by a multiplicative scaling.
noexcept.Definition at line 46 of file Scaling1d.h.
|
inlinenoexcept |
Construct from the given multiplicative scale and additive shift.
Definition at line 50 of file Scaling1d.h.
|
defaultnoexcept |
Default copy constructor.
|
defaultnoexcept |
Default move constructor.
|
inlinenoexcept |
Apply the transform in the forward direction.
Result is defined to be (x + getShift()) * getScale().
Definition at line 72 of file Scaling1d.h.
|
inlinenoexcept |
Apply the inverse of the forward transform;.
Definition at line 79 of file Scaling1d.h.
|
inlinenoexcept |
Return the multiplicative scaling.
Definition at line 84 of file Scaling1d.h.
|
inlinenoexcept |
Return the additive shift.
Definition at line 87 of file Scaling1d.h.
|
inlinenoexcept |
Invert the transform.
If r = t.invert(), then r.applyForward(x) is equivalent to t.applyInverse(x) and r.applyInverse(y) is equivalent to t.applyForward(y).
Definition at line 96 of file Scaling1d.h.
Default copy assignment.
Default move assignment.
Compose two transforms.
If r = a.then(b), then r.applyForward(x) is equivalent to b.applyForward(a.applyForward(x)) and r.applyInverse(y) is equivalent to a.applyInverse(b.applyInverse(y)).
Definition at line 107 of file Scaling1d.h.
1.8.13