Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

Distance between 2 points

$
0
0
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? Thanks.

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>