centerOfCircleFromThreePoints

See source code

Get the center of a circle from three points.

function centerOfCircleFromThreePoints(
  a: VecLike,
  b: VecLike,
  c: VecLike
): null | Vec

Parameters

NameDescription

a

The first point

b

The second point

c

The third point

Returns

null | Vec

The center of the circle or null if the points are collinear

Prev
canonicalizeRotation
Next
clamp