Curve that touches three points: Difference between revisions
Content added Content deleted
Line 86: | Line 86: | ||
x = a-r:0.25:a+r |
x = a-r:0.25:a+r |
||
y0 = sqrt.(r^2 .- (x .- a).^2) |
y0 = sqrt.(r^2 .- (x .- a).^2) |
||
scene = lines(x, y0 .+ b) |
scene = lines(x, y0 .+ b, color = :red) |
||
lines!(scene, x, b .- y0) |
lines!(scene, x, b .- y0, color = :red) |
||
scatter!(scene, [p.x for p in allp], [p.y for p in allp]) |
scatter!(scene, [p.x for p in allp], [p.y for p in allp], color = :black) |
||
</lang>{{out}} |
</lang>{{out}} |
||
<pre> |
<pre> |