#ifndef VECTOR3_H #define VECTOR3_H class Vector3 { private: double coords[3]; //using an array instead of x,y,z public: Vector3(double x_val = 0.0, double y_val = 0.0, double z_val = 0.0); void display() const; friend double dotProduct(const Vector3& v1, const Vector3& v2); friend Vector3 crossProduct(const Vector3& v1, const Vector3& v2); }; #endif