Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / halfway point

Author
Message
Tim Ballisto
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Right behind you.
Posted: 9th Apr 2004 23:22
this snippet finds the halfway point between to coordinants.





below is a simple test program, the variable names are different and it's 2d. (to make the above 2d remove all references to the z plain.)




Programs for programmers.
kevil
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: Netherlands
Posted: 9th Apr 2004 23:40
??????

What's wrong with just:
centerx=(x1+x2)/2.0
centery=(y1+y2)/2.0

Kevil

Login to post a reply

Server time is: 2024-05-12 15:36:47
Your offset time is: 2024-05-12 15:36:47