answersLogoWhite

0


Best Answer

The formula:

distance=sqrt(((x1-x2)*(x1-x2))+((y1-y2)*(y1-y2))+((z1-z2)*(z1-z2)))

In DarkBASIC it's:

function distance3D(x1,y1,z1,x2,y2,z2)

x=x1-x2

y=y1-y2

z=z1-z2 result=sqrt((x*x)+(y*y)+(z*z)) endfunction result

In classic BASIC I think it's:

FUNCTION distance3D(x1,y1,z1,x2,y2,z2)

x=x1-x2

y=y1-y2

z=z1-z2 result=SQRT((x*x)+(y*y)+(z*z))

RETURN result

END FUNCTION

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the distance formula in 3D?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Why is the distance formula important to geometry?

When we study the motion of body then its displacement is described on cartesian plane or in 3d geometry and not in real physical conditions,in this way to calculate the distance travelled by the body is a major aspect in calculating its speed and other things,and here distance formula help us to do so.There are many other importance of distance formula...


Formula for 3D shapes?

length x breadth x height=3d


What is the formula for a 3d shapes?

A 3D shape must have length x width x depth.


Who invented the distance formula?

Pythagoras invented the distance formula


Formula for 3D dimension to square meter?

what is the formula for finding a 3 dimensional square


Finding distance given the average speed?

Use the formula: distance = time x speed.Use the formula: distance = time x speed.Use the formula: distance = time x speed.Use the formula: distance = time x speed.


How do you calculate the formula for distance?

== I'm pretty sure the formula for distance is: D== rt (Distance= rate x time) == The formula for distance is: speed x time.


What is the formula of distance?

It is the same as the distance formula. DISTANCE FORMULA: d=square root of (x2-x1)^2+(y2-y1)^2


What is Kingdom Hearts 3D?

Kingdom Hearts 3D is a Nintendo 3DS title. The full title is : Kingdom Hearts 3D - Dream Drop Distance


What formula do you use in science to find the distance?

In science, you can calculate distance using the formula: distance = speed × time. This formula relates the distance traveled by an object to its speed and the time it takes to travel that distance.


What is the formula for distance in a science problem?

The Formula for distance is SPEED X TIME


Can the distance formula can be derived from the Pythagorean theorem?

Yes, the formula for the Euclidean distance. But not necessarily other distance metrics.