PHP Developers Network
http://forums.devnetwork.net/

finding a point on line
http://forums.devnetwork.net/viewtopic.php?f=32&t=25378
Page 1 of 1

Author:  bugthefixer [ Tue Aug 24, 2004 6:31 am ]
Post subject:  finding a point on line


Author:  AVATAr [ Tue Aug 24, 2004 9:03 am ]
Post subject: 


Author:  pickle [ Tue Aug 24, 2004 9:54 am ]
Post subject: 

This might work.

Syntax: [ Download ] [ Hide ]
//divide the rise and the run by 8,

$rise = 78 - 56;

$run = 44 - 23;

$rise_segment = $rise/8;

$run_segment = $run/8;



$fourth_section_x = 23 + ($run_segment * 4);

$fourth_section_y = 56 + ($rise_segment * 4);

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/