Main
Vectors
Matrix
Matrix Manipulation
Transformation Matrices
Angles
Random
Bezier Curve
Equations
Path Movement
Color
Linear Interpolation
Derivatives
Collision Detection
Animation
Circle And Ellipse
Sequence
Combinatorics
Other

Get Circle & Ellipse Circumference

Get Circle Circumference

import { getCircleCircumference } from 'mz-math';

const radius = 10;
const decimalPlaces = 2; // optional

const circumference = getCircleCircumference(radius, decimalPlaces); // 62.83

Get Ellipse Circumference

import { getEllipseCircumference } from 'mz-math';

const radius1 = 10;
const radius1 = 20;
const decimalPlaces = 2; // optional

const circumference = getEllipseCircumference(radius1, radius2, decimalPlaces); // 99.35