Unformatted text preview: z.Implement the default and copy constructors.Provide accessor methods (getters and setters) for the three data members. Implement the magnitude function as a public member method. Implement these global friend functions: ostream& operator<<(ostream& o, const Vector& v); Vector operator+(const Vector& v1, const Vector& v2); Vector operator(const Vector& v1, const Vector& v2); Extra Credit opportunity 1 (10 points): Implement operator+=, operator=, operator* between a Vector and a double, operator/ between a Vector and a double (there are two orderings each for * and / ) Extra Credit Opportunity 2 (10 points): The dot product P of two Vectors v1 and v2 is defined as follows: P = v1.x*v2.x + v1.y*v2.y + v1.z*v2.z...
View
Full Document
 '08
 FORMITCHEV
 Addition, Vector Space, Dot Product, Euclidean vector, Vector Motors

Click to edit the document details