28 #ifndef CASA_MVEARTHMAGNETIC_H
29 #define CASA_MVEARTHMAGNETIC_H
208 const Unit &unit)
const;
214 const Unit &unit)
const;
220 virtual void print(ostream &os)
const;
virtual void print(ostream &os) const
Print data.
MVEarthMagnetic operator-() const
Addition and subtraction.
virtual Bool putValue(const Vector< Quantum< Double > > &in)
Set the internal value if correct values and dimensions.
Double earthMagneticAngle(const MVEarthMagnetic &other) const
Get the EarthMagnetic angle between the directions.
virtual MeasValue * clone() const
Clone.
Bool operator!=(const MVEarthMagnetic &other) const
static void assure(const MeasValue &in)
const Vector< Double > & getValue() const
Generate a 3-vector of x,y,z in tesla.
MVEarthMagnetic operator*(const RotMatrix &left, const MVEarthMagnetic &right)
Rotate a EarthMagnetic vector with rotation matrix and other multiplications.
virtual uInt type() const
Tell me your type.
Bool nearAbs(const MVEarthMagnetic &other, Double tol=1e-13) const
MVEarthMagnetic crossProduct(const MVEarthMagnetic &other) const
Produce the cross product.
MVEarthMagnetic operator+(const MVEarthMagnetic &right) const
Base class for values in a Measure.
Quantity getLength() const
Generate the length.
MVEarthMagnetic & operator+=(const MVEarthMagnetic &right)
virtual void adjust()
Normalise direction aspects by adjusting the length to 1.
MVEarthMagnetic & operator-=(const MVEarthMagnetic &right)
A 3D Earth magnetic field vector.
bool Bool
Define the standard types used by Casacore.
virtual void putVector(const Vector< Double > &in)
Set the value from internal units (set 0 for empty vector)
virtual Vector< Quantum< Double > > getRecordValue() const
Get the internal value as a Vector<Quantity>.
Double separation(const MVEarthMagnetic &other) const
Get the angular separation between two directions.
Bool near(const MVEarthMagnetic &other, Double tol=1e-13) const
Quantum< Vector< Double > > getAngle() const
Generate angle 2-vector (in rad)
virtual Vector< Double > getVector() const
Get the value in internal units.
MVEarthMagnetic & operator=(const MVEarthMagnetic &other)
Copy assignment.
const Double e
e and functions thereof:
Bool operator==(const MVEarthMagnetic &other) const
Equality comparisons.
virtual void readjust(Double res)
Re-adjust using factor given.
~MVEarthMagnetic()
Destructor.
virtual Double radius()
Get modulus of EarthMagnetic.
MVEarthMagnetic()
Default constructor generates a (0,0,0) EarthMagnetic.
Double operator*(const MVEarthMagnetic &other) const
Multiplication defined as in-product.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.