title: Get area and perimeter of a UIBezierPath IOS
body: <p>I have a UIBezierPath:</p>
  
  <pre><code>    CGPathRef tapTargetPath = CGPathCreateCopyByStrokingPath(tracePath.CGPath, NULL, marginError, tracePath.lineCapStyle, tracePath.lineJoinStyle, tracePath.miterLimit);
      UIBezierPath *tracePath = [UIBezierPath bezierPathWithCGPath:tapTargetPath];
  </code></pre>
  
  <p>when it is touched in the method:</p>
  
  <pre><code>- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
  </code></pre>
  
  <p>I get a point. When i retrieve 2 points i want to get the segment(area or perimeter) of the UIBezierPath that i am touching, how can i accomplish this?</p>