title: CGPoint returning method
body: <p>i try to return a CGPoint but i do something wrong: </p>
  
  <p>Here is my method:</p>
  
  <pre><code>- (CGPoint)calculatePointOnCircleFrom:(CGPoint)pointA PointB:(CGPoint)pointB radius:(float)rd {
      float sryy = pointA.y - pointB.y;
      float srxx = pointA.x - pointB.x;
      float sry = pointA.y + sryy;
      float srx = pointA.x + srxx;
      float kpx = pointA.x + cos(atan2(pointA.y - sry, pointA.x - srx)) * rd;
      float kpy = pointA.y + sin(atan2(pointA.y - sry, pointA.x - srx)) * rd;
  
      return CGPointMake(kpx, kpy);
  }
  </code></pre>
  
  <p>The code in the method works fine but i do something wrong with the initialization.</p>
  
  <p>Here i call the method:</p>
  
  <pre><code>    point1.position = [self calculatePointOnCircleFrom:Player.position PointB:touchPos radius:64]; 
  </code></pre>
  
  <p>and get fooling error: "incompatible type for argument 1 of 'setPosition:'"</p>