in reply to
Re^2: Check if line is straight
in thread
Check if line is straight
return abs(($x2-$x1)*($y-$y1)-($x-$x1)*($y2-$y1)) < $tolerance;
Update added
abs()
Comment on
Re^3: Check if line is straight
Select
or
Download
Code
In Section
Seekers of Perl Wisdom