note 74779 added to function.imageline
| From: | JonathanW dot at osu1 dot php dot net | Date: | Fri, 27 Apr 2007 08:15:07 +0000 |
| Subject: | note 74779 added to function.imageline | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-125908@lists.php.net to get a copy of this message | ||
I've modified the previous entry for drawing on a polar coordinate system to better represent
angles based on a 360º whole circle bearing.
<?php
function imagepolarline($image,$x1,$y1,$length,$angle,$color)
{
$x2 = $x1 + sin( deg2rad($angle) ) * $length;
$y2 = $y1 + cos( deg2rad($angle+180) ) * $length;
imageline($image,$x1,$y1,$x2,$y2,$color);
}
?>
----
Server IP: 203.220.0.234
Probable Submitter: 202.7.166.164 (proxied: 60.240.197.54)
----
Manual Page -- http://www.php.net/manual/en/function.imageline.php
Edit -- https://master.php.net/note/edit/74779
Del: integrated -- https://master.php.net/note/delete/74779/integrated
Del: useless -- https://master.php.net/note/delete/74779/useless
Del: bad code -- https://master.php.net/note/delete/74779/bad+code
Del: spam -- https://master.php.net/note/delete/74779/spam
Del: non-english -- https://master.php.net/note/delete/74779/non-english
Del: in docs -- https://master.php.net/note/delete/74779/in+docs
Del: other reasons-- https://master.php.net/note/delete/74779
Reject -- https://master.php.net/note/reject/74779
Search -- https://master.php.net/manage/user-notes.php