Suppose we have the following two points in a 3D space:
The distance between point1 and point2 is:
Please create a ThreeD class to calculate the distance between two 3D points.
- Write three public functions to Point class to get the value of X, Y, and Z
1 1 1
2 3 4
Distance is: 3.74166