LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
Go to the documentation of this file.
42 int const mergedCurrent =
first.getNFrame() +
second.getCurrent();
49 auto naxes = center.
size();
50 if (mapping1d.
getNIn() != 1) {
52 " inputs, instead of 1");
56 " outputs, instead of 1");
59 return std::make_shared<Mapping>(
60 unitNormMap.then(
UnitMap(naxes).under(mapping1d)).
then(*unitNormMap.inverted()));
A FrameSet consists of a set of one or more Frames (which describe coordinate systems),...
An abstract base class for objects which transform one set of coordinates to another.
std::shared_ptr< FrameSet > append(FrameSet const &first, FrameSet const &second)
Construct a FrameSet that performs two transformations in series.
int getNOut() const
Get NOut: the number of output axes.
static constexpr int CURRENT
index of current frame
std::shared_ptr< Mapping > makeRadialMapping(std::vector< double > const ¢er, Mapping const &mapping1d)
Construct a radially symmetric mapping from a 1-dimensional mapping.
The forward transformation of a UnitNormMap subtracts the specified centre and then transforms the re...
void setCurrent(int ind)
Set Current: index of current Frame, starting from 1.
AST wrapper classes and functions.
int getNIn() const
Get NIn: the number of input axes.
virtual void addFrame(int iframe, Mapping const &map, Frame const &frame)
Add a new Frame and an associated Mapping to this FrameSet so as to define a new coordinate system,...
static constexpr int BASE
index of base frame
A UnitMap is a unit (null) Mapping that has no effect on the coordinates supplied to it.