note 15051 deleted from function.deg2rad by victor
| From: | victor@php.net | Date: | Sat, 07 Dec 2002 15:30:28 +0000 |
| Subject: | note 15051 deleted from function.deg2rad by victor | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-40468@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