28 #ifndef CASA_MVDIRECTION_H
29 #define CASA_MVDIRECTION_H
187 const Unit &unit)
const;
189 const Unit &unit)
const;
196 const Unit &unit)
const;
198 const Unit &unit)
const;
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)
Tell me your type.
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.
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.
MVPosition operator-() const
Addition and subtraction.
Vector of three direction cosines.
virtual Vector< Quantum< Double > > getXRecordValue() const
virtual Vector< Quantum< Double > > getTMRecordValue() const
MVBaseline operator*(const RotMatrix &left, const MVBaseline &right)
Rotate a Baseline vector with rotation matrix and other multiplications.