lights FAQ Forum github.com/luapower/path2d

2D Graphics
path2d
affine2d
box2d
clipper
cairo
freetype
openvg
svg_parser
hpdf

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: 22 months ago | Edit on GitHub

Pkg type:Lua+ffi
Version: dev-30-gd1027f3
Last commit:
License: PD
Requires: eq  glue  pp  vararg  luajit 
Required by: sg  cplayer  winapi 

Top