# polarFit(a)

Determines the unique circle defined by given three points.

### Syntax

o_polarFit(a)
  a: array 1D coord - arbitrary three points in cartesian coords
  return: scalar record - center and radius of circle

### Usage

Given three points it is possible to define a unique circle. This function finds that circle and returns center and radius.

### Location

menu: veeos ==> Data ==> Circles ==> polarFit

library: dataLib

### Example

see veeos examples inside of VEE

### Notes

Since 3 points on a plane uniquely define a circle (unless they are colinear of course), this function can operate with a closed-form expression and hence no loops. It is fast and precise normally, but if the points are nearly colinear then the result can be noisy.

### Reference

### Dependencies

### Supported On

VEE 7.0+, all platforms

### See Also

polarRegress

© 2015-2021. All Rights Reserved. Stan Bischof (stan@worldbadminton.com). Last updated 09 August 2021 18:24.