lights FAQ Forum github.com/luapower/path2d

2D Geometry
path2d
affine2d
box2d
clipper

path2d_circle_3p

3-point parametrization of circles


local circle_3p = require'path2d_circle_3p'

circle_3p.to_circle(x1, y1, x2, y2, x3, y3) -> cx, cy, r

Find the unique circle that passes through 3 points. If the points are collinear or any two points are coincidental, nothing is returned.


See also: path2d_arc_3p


Last updated: 4 years ago | Edit on GitHub

Package:path2d
Pkg type:Lua+ffi
Version: 72a1fc6
Last commit:
License: Public Domain

Requires: eq  glue  pp  luajit 

Required by: cplayer 


Top