28 #ifndef COORDINATES_GAUSSIANCONVERT_H
29 #define COORDINATES_GAUSSIANCONVERT_H
39 template<
class T>
class Quantum;
Bool toPixel(Double &majorAxisOut, Double &minorAxisOut, Quantum< Double > &positionAngleOut, const Quantum< Double > &majorAxisIn, const Quantum< Double > &minorAxisIn, const Quantum< Double > &positionAngleIn)
Convert Gaussian parameters from world to pixel.
Bool toWorld(Quantum< Double > &majorAxisOut, Quantum< Double > &minorAxisOut, Quantum< Double > &positionAngleOut, Double majorAxisIn, Double minorAxisIn, const Quantum< Double > &positionAngleIn)
Convert Gaussian parameters from pixels to world.
GaussianConvert & operator=(const GaussianConvert &other)
Assignment operator.
Converts Gaussian parameters between pixel and world.
void convertAxes(Double &minorAxisOut, Double &majorAxisOut, Quantum< Double > &positionAngleOut, Double minorAxisIn, Double majorAxisIn, const Quantum< Double > &positionAngleIn, const CoordinateSystem &cSys, String dir)
LatticeExprNode pa(const LatticeExprNode &left, const LatticeExprNode &right)
This function finds 180/pi*atan2(left,right)/2.
bool Bool
Define the standard types used by Casacore.
~GaussianConvert()
Destructor.
Double positionAngleRange(Double pa)
Vector< uInt > itsWorldAxes
GaussianConvert()
Default constructor.
void checkCoordinateSystem()
void setCoordinateSystem(const CoordinateSystem &cSys)
(Re)set the coordinate system
void setWorldAxes(const Vector< uInt > &worldAxes)
Re(set) the world axes.
String errorMessage() const
Recover error messages from the conversion functions.
String: the storage and methods of handling collections of characters.
Interconvert pixel and world coordinates.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.