Moderator: General Moderators
and its ending point is
suppose if there are 8 equal division on that line, so now i want to
find the point in terms of (x,y) which is 4 divisions away from start
is there any php function which can do that for me.
or if anybody can tell me any code for doing that.
- Forum Regular
- Posts: 524
- Joined: Tue Jul 16, 2002 4:19 pm
- Location: Uruguay -- Montevideo
Code: Select all
//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);