1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#ifndef VECTOR_H #define VECTOR_H class Vec3d { Vec3d(); Vec3d(double x, double y, double z); void set(double x, double y, double z); void normalize(); double length(); Vec3d cross(const Vec3d &vec); // Operators }; #endif