given a line with coordinates x1:y1 to x2:y2

I need a way to find the coordinates at some point at any given percent of the length

 -

for example,

$segment=drawpercent($fromx,$fromy,$tox,$toy,50)
$segx=$segment[0]
$segy=$segment[1]

TIA

[ 03. February 2003, 01:04: Message edited by: Radimus ]
_________________________
How to ask questions the smart way <-----------> Before you ask