#ifndef UNITVECTOR_H_SEEN #define UNITVECTOR_H_SEEN #include #include #include #include "vector3d.h" class UnitVector : public Vector3d { public: UnitVector(); UnitVector(double x, double y, double z); UnitVector(double theta, double phi=0); UnitVector(const Vector3d&); Vector3d& operator=(const Vector3d&); Vector3d& operator+=(const Vector3d&); Vector3d& operator-=(const Vector3d&); Vector3d operator+(const Vector3d&) const; Vector3d operator-(const Vector3d&) const; void Print(ostream& os) const; }; #endif