#ifndef MATRIXZ_H #define MATRIXZ_H #include class matrixZ { public: std::vector operator* (std::vector Vect); private: float theta; }; #endif #include "matrixZ.h" #include #include std::vector matrixZ::operator*(std::vector Vect) { std::vector temp(2); temp[0] = Vect[0] * cos(theta) - Vect[1] * sin(theta); temp[1] = Vect[0] * sin(theta) + Vect[1] * cos(theta); return temp; }