Ask a New Question

Question

Make two 3D-points in a 3-Dimensional space. Calculate the distance between these two points. Instead of integer data type, use any other datatype for x,y,z values. Create an object pt, and call distance function as pt.Distance(pt2), which will calculate the distance between two 3-D points.

4 years ago

Answers

oobleck
Recall that in 2D, d^2 = x^2+y^2
In 3D, d^2 = x^2+y^2+z^2
where x,y,z are the distances, not the coordinates.
4 years ago

Related Questions

[6 points] You need to make a solution of Ca(NO3)2 for a class demonstration. First, you measure a... Do you think that all six dimensions of health are equally important? Why or why not? Do you think that all six dimensions of health are equally important? If a teacher points out or makes comments about the printed words in a book while sharing it, the ch... If a TV has the following dimensions 48” wide, 27” height, and 55” diagonal. Respond to the follow... What do we know about the dimensions and the origin of the Oumuamua object? A) It is several miles a... If a TV has the following dimensions 48” wide, 27” height, and 55” diagonal. Respond to the followin... which of these is a three dimensional shape? sculpture form statue vessel If a TV has the following dimensions 48” wide, 27” height, and 55” diagonal. Respond to the followin... make points for each of these mohawk teaching Peace Maker Prophecy: Counting: Morning Prayer:...
Ask a New Question
Archives Contact Us Privacy Policy Terms of Use