@mocanvas/editor · function

perimeterOfEllipse

declare function perimeterOfEllipse(rx: number, ry: number): number

The perimeter of an ellipse, to Ramanujan's second approximation — accurate to better than a part in ten thousand for any eccentricity a shape can have.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.