28 #ifndef CASA_MVDIRECTION_H
29 #define CASA_MVDIRECTION_H
191 const Unit &unit)
const;
193 const Unit &unit)
const;
200 const Unit &unit)
const;
202 const Unit &unit)
const;
virtual uInt type() const
Tell me your type.
MVDirection crossProduct(const MVDirection &other) const
Produce the cross product.
Double separation(const MVPosition &other) const
Get the angular separation between two directions.
static void assure(const MeasValue &in)
virtual void adjust()
Adjust the direction cosines to a length of 1.
MVDirection()
Default constructor generates a direction to the pole (i.e.
MVDirection operator+(const MVDirection &right) const
virtual MeasValue * clone() const
Re-adjust : taken from MVPosition.
MVEarthMagnetic operator*(const RotMatrix &left, const MVEarthMagnetic &right)
Rotate a EarthMagnetic vector with rotation matrix and other multiplications.
virtual Vector< Quantum< Double > > getRecordValue() const
Get the internal value as a Vector<Quantity>.
Double positionAngle(const MVPosition &other) const
Get the position angle between the directions.
virtual Bool putValue(const Vector< Quantum< Double > > &in)
Set the internal value if correct values and dimensions.
MVDirection & operator-=(const MVDirection &right)
Base class for values in a Measure.
LatticeExprNode pa(const LatticeExprNode &left, const LatticeExprNode &right)
This function finds 180/pi*atan2(left,right)/2.
Double getLat() const
Get the latitude angle (rad)
bool Bool
Define the standard types used by Casacore.
void shiftLongitude(const Quantity &lng, Bool trueAngle=False)
void shift(const Quantum< Double > &lng, const Quantum< Double > &lat, Bool trueAngle=False)
Shift the direction in longitude (radians if Double) and/or latitude.
void shiftLatitude(const Quantum< Double > &lat, Bool trueAngle=False)
void shiftAngle(const Quantum< Double > &off, const Quantum< Double > &pa)
Shift over an angle off in the direction pa.
void setAngle(Double angle0, Double angle1)
Set the internal value, using the longitude and latitude (in rad) given.
MVDirection & operator+=(const MVDirection &right)
Addition and subtraction.
~MVDirection()
Destructor.
MVPosition operator-() const
Addition and subtraction.
Vector of three direction cosines.
virtual Vector< Quantum< Double > > getXRecordValue() const
MVDirection & operator=(const MVDirection &other)
Copy assignment.
virtual Vector< Quantum< Double > > getTMRecordValue() const
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.