#include #include #include #include "point.h" using namespace std; int main() { const double pi = 4 * atan2(1, 1); point p(1, 0, 0); cout << p << "\n"; p.zrot(45 * pi / 180); cout << p << "\n"; p.xrot(45 * pi / 180); cout << p << "\n"; cout << p.xrot(-45 * pi / 180) //Undo the previous rotations. .zrot(-45 * pi / 180) << "\n"; return EXIT_SUCCESS; }