diff options
author | Karl Berry <karl@freefriends.org> | 2009-05-16 00:19:13 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-05-16 00:19:13 +0000 |
commit | bab45528d65eaafe68a705dbb2a57075c7b7cbd8 (patch) | |
tree | 10b4ae2b5195c8dede153ab89359ec00f55f325f /Build/source/utils/asymptote/examples/fano.asy | |
parent | 8643d90372e9c31e0f461c15c596b60a545bd7d3 (diff) |
asymptote 1.72 sources (not integrated into build yet)
git-svn-id: svn://tug.org/texlive/trunk@13110 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/examples/fano.asy')
-rw-r--r-- | Build/source/utils/asymptote/examples/fano.asy | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/examples/fano.asy b/Build/source/utils/asymptote/examples/fano.asy new file mode 100644 index 00000000000..12286d7006e --- /dev/null +++ b/Build/source/utils/asymptote/examples/fano.asy @@ -0,0 +1,28 @@ +import math; + +size(100,0); + +pair z4=(0,0); +pair z7=(2,0); +pair z1=point(rotate(60)*(z4--z7),1); + +pair z5=interp(z4,z7,0.5); +pair z3=interp(z7,z1,0.5); +pair z2=interp(z1,z4,0.5); +pair z6=extension(z4,z3,z7,z2); + +draw(z4--z7--z1--cycle); +draw(z4--z3); +draw(z7--z2); +draw(z1--z5); +draw(circle(z6,abs(z3-z6))); + +label("1",z1,dir(z5--z1)); +label("2",z2,dir(z7--z2)); +label("3",z3,dir(z4--z3)); +label("4",z4,dir(z3--z4)); +label("5",z5,dir(z1--z5)); +label("6",z6,2.5E+0.1*N); +label("7",z7,dir(z2--z7)); + + |