title: How to avoid this degree to radian error?
body: <p>While developing pie chart using core plot I added animation for that for given code</p>
  
  <pre><code>    CABasicAnimation *rotation = [CABasicAnimation animationWithKeyPath:@"transform"];
     CATransform3D transform = CATransform3DMakeRotation(DegreesToRadians(360), 0, 0, 1);
     rotation.toValue = [NSValue valueWithCATransform3D:transform];  
      rotation.duration = 10.0f;
      [pieChart addAnimation:rotation forKey:@"rotation"];    
  </code></pre>
  
  <p>This code gives following error Semantic Issue:</p>
  
  <pre><code>Implicit declaration of function 'DegreesToRadians' is invalid in C99
  </code></pre>
  
  <p>What can I do for avoid this? </p>
  
  <p>And also run time it gives following error:</p>
  
  <pre><code>Apple_o  Linker id error  "_DegreesToRadians", referenced from:
  </code></pre>
  
  <p>Thanks and Regards</p>
  
  <p>Vijayakumar</p>
  
  <p>iOS Developer at Rhytha</p>
  
  <p><a href="https://rhytha.com/" rel="nofollow">https://rhytha.com/</a></p>