Difference between revisions of "User:Me@home"
Line 6: | Line 6: | ||
}; | }; | ||
pair A[] = { (6.5,0),(1.5,12) }; | pair A[] = { (6.5,0),(1.5,12) }; | ||
− | |||
pair P[] = { A[0],A[1],-bar(A[1]),-bar(A[0]),(2A[0]-bar(A[0]))/3,(2A[0]+A[1])/3, | pair P[] = { A[0],A[1],-bar(A[1]),-bar(A[0]),(2A[0]-bar(A[0]))/3,(2A[0]+A[1])/3, | ||
(5A[0]-4bar(A[0]))/9,(5A[0]+4A[1])/9 | (5A[0]-4bar(A[0]))/9,(5A[0]+4A[1])/9 | ||
Line 12: | Line 11: | ||
pair D[] = { (2P[4]+P[5])/3,(P[4]+2P[5])/3 }; | pair D[] = { (2P[4]+P[5])/3,(P[4]+2P[5])/3 }; | ||
draw( D[0]--P[6] ,blue+1mm); | draw( D[0]--P[6] ,blue+1mm); | ||
+ | draw( D[0]--P[4] ,blue+1mm); | ||
+ | draw( P[6]--P[4], black+1mm); | ||
pair E[] = {(D[0]+P[6])/2,D[0] + P[6] - P[4]}; | pair E[] = {(D[0]+P[6])/2,D[0] + P[6] - P[4]}; | ||
dot(E[0]);dot(E[1]); | dot(E[0]);dot(E[1]); | ||
Line 18: | Line 19: | ||
draw(P[4]--P[5]); | draw(P[4]--P[5]); | ||
draw(D[1]--P[7]); | draw(D[1]--P[7]); | ||
− | draw( | + | draw( P[3] -- P[0] -- P[1]) ; |
− | |||
− | |||
− | |||
− | |||
for(int i=0;i<10;++i) { | for(int i=0;i<10;++i) { | ||
if(i<4) { | if(i<4) { | ||
− | + | ||
} else { | } else { | ||
dot( (i<8) ? P[i] : D[i-8] ); | dot( (i<8) ? P[i] : D[i-8] ); |
Revision as of 00:14, 15 September 2008