Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. inline float get_midpoint( float x1, float y1, float x2, float y2)
  2. {
  3. return (float) sqrt ( square(x2 - x1) + square(y2 - y1) );
  4. }
  5.  
  6. float get_distance_from_start(float x1, float y1, float x2, float y2, float distance);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement