Jump to content
  • Advertisement

Distance between 2 points

Recommended Posts

Let's say I have a point1: x =10, y = 50 

and point2: x = 30, y = 75

And I would like to draw a line between those two points. How to calculate the distance between those two points so I know what that line's length should be?




Share this post

Link to post
Share on other sites

With all due respect, I googled your thread title verbatim and was suggested a 25-second video clip with a thumbnail of the literal equation required to do what you're asking.  Didn't even have to change it at all.  That points to a serious lack of effort.

We're all willing to help people and answer questions, but that effort needs to be reciprocated at least somewhat by the people asking.  Please at least use a few minutes to google for an answer before making a thread asking something.

Edited by SeraphLance

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!