43 merged->setCurrent(mergedCurrent);
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>(
int getNFrame() const
Get FrameSet_NFrame "NFrame": number of Frames in the FrameSet, starting from 1.
A UnitMap is a unit (null) Mapping that has no effect on the coordinates supplied to it...
AST wrapper classes and functions.
int getCurrent() const
Get Current: index of current Frame, starting from 1.
std::shared_ptr< Frame > getFrame(int iframe, bool copy=true) const
Obtain a deep copy of the specified Frame.
std::shared_ptr< FrameSet > append(FrameSet const &first, FrameSet const &second)
Construct a FrameSet that performs two transformations in series.
static int constexpr CURRENT
index of current frame
An abstract base class for objects which transform one set of coordinates to another.
std::shared_ptr< FrameSet > copy() const
Return a deep copy of this object.
The forward transformation of a UnitNormMap subtracts the specified centre and then transforms the re...
std::shared_ptr< Mapping > makeRadialMapping(std::vector< double > const ¢er, Mapping const &mapping1d)
Construct a radially symmetric mapping from a 1-dimensional mapping.
int getNIn() const
Get NIn: the number of input axes.
static int constexpr BASE
index of base frame
int getNOut() const
Get NOut: the number of output axes.
A FrameSet consists of a set of one or more Frames (which describe coordinate systems), connected together by Mappings (which describe how the coordinate systems are inter-related).