diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /graphics/asymptote/examples/circumcircle.asy |
Initial commit
Diffstat (limited to 'graphics/asymptote/examples/circumcircle.asy')
-rw-r--r-- | graphics/asymptote/examples/circumcircle.asy | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/graphics/asymptote/examples/circumcircle.asy b/graphics/asymptote/examples/circumcircle.asy new file mode 100644 index 0000000000..96b3bdd82a --- /dev/null +++ b/graphics/asymptote/examples/circumcircle.asy @@ -0,0 +1,9 @@ +unitsize(1inch); + +path tri=(0,0)--(1,0)--(2,1)--cycle; +pair p1=point(tri,0.5); +pair p2=point(tri,1.5); +pair z0=extension(p1,p1+I*dir(tri,0.5),p2,p2+I*dir(tri,1.5)); +dot(z0); +draw(circle(z0,abs(z0-point(tri,0)))); +draw(tri,red); |