Question: 1. [40 points] Point3d class is designed to keep track of the position of a point in three- dimensional space. For example, consider the points
![1. [40 points] Point3d class is designed to keep track of](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3abd6ab2fb_27066f3abd61df6a.jpg)

1. [40 points] Point3d class is designed to keep track of the position of a point in three- dimensional space. For example, consider the points drawn in the figure. Each point has three coordinates, for point P, x 3, y 0, and z-5 and for point Q, -5, y--5, and z 7. 10 Q(-5,-5,7) P(3,0,5) 10 10 (0,0,0) 10 10 The class includes member functions to (1) set a point to a specified location (setX, setY, setZ) (2) shift a point a given amount along one of the axes (shift), and (3) retrieve the coordinates of a point (getX, getY, getz). Also, it has a non-member function to overload the equality comparison. Your task is to implement point3d.cpp given the following point3d.h head file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
