# CurveTo problem

**URL:** <https://forum.kirupa.com/t/curveto-problem/106411>\
**Category:** Uncategorized\
**Created:** [April 5, 2004, 4:55pm UTC](https://forum.kirupa.com/t/curveto-problem/106411 "2004-04-05T16:55:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flasholinos](https://avatars.discourse-cdn.com/v4/letter/f/ee59a6/32.png) [@flasholinos](https://forum.kirupa.com/u/flasholinos)\
**Post date:** [April 5, 2004, 4:55pm UTC](https://forum.kirupa.com/t/curveto-problem/106411/1 "2004-04-05T16:55:16Z")

</div>

Hi guys ! This is my problem! I want to create a pie chart… . I used  
\_root.a=Math.cos(0\*Math.PI/180)_radius;  
\_root.b=Math.sin(0_Math.PI/180)_radius;  
for my first point  
and  
\_root.c=Math.cos(degrees_Math.PI/180)_radius;  
\_root.d=Math.sin(degrees_Math.PI/180)\*radius;  
for the second point.  
so my problem is that i cant calculate the control points to join the 2 points?  
anybody knoes ???
