File talk:Fermat Points.png

来自Wikimedia Commons
跳转到导航 跳转到搜索

Source code

[编辑]

The source code of this image is licensed under GNU Free Documentation License, just as the image itself is. (I know this sentence is redundant ;) )

Feel free to edit and improve the following source code, I know the code is quite dirty lol. --Lemontea 09:29, 12 September 2005 (UTC)[回复]


frame(-3.5, -6, 7.5, 7)
B C A triangle(6, 75:, 35:)
C B P equilateral
A C Q equilateral
B A R equilateral
s = segment(A, P)
t = segment(B, Q)
u = segment(C, R)
F = intersection(line(A, P), line(B, Q))
color(red)
thickness(2)
draw(s)
draw(t)
draw(u)
draw(F)
thickness(0.5)
color(black)
thickness(4)
draw(B, C, A)
thickness(0.25)
draw(B, C, P, dashed)
draw(A, C, Q, dashed)
draw(B, A, R, dashed)
mark(segment(A, B), simple)
mark(segment(A, R), simple)
mark(segment(B, R), simple)
mark(segment(A, C), double)
mark(segment(A, Q), double)
mark(segment(C, Q), double)
mark(segment(B, C), triple)
mark(segment(B, P), triple)
mark(segment(C, P), triple)