note 15051 added to function.deg2rad.php
| From: | webmaster-at-toolshed51-dot-com at php2 dot chek dot com | Date: | Sat, 25 Aug 2001 20:40:57 +0000 |
| Subject: | note 15051 added to function.deg2rad.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17139@lists.php.net to get a copy of this message | ||
To calculate x,y coordinates to draw the lines for making pieces in a pie chart, use this formula:
$x2=$x+cos(deg2rad($degrees))*$radius
$y2=$y+sin(deg2rad($degrees))*$radius
http://www.php.net/manual/en/function.deg2rad.php