![]() |
|||
| HSG |
|
import math
def f(a,h):
A = h*h + 4*a*a
B = 2*a*h*h - 4*a*a*a
C = a*a*(a*a -h*h)
D = B*B - 4*A*C
x = (-B-math.sqrt(D))/(2*A)
y = a*(a - 2*x)/h
return (x,y)
Die Koordinaten eines Items lassen sich verändern!
konkret: self.c.coords(self.j,fx,fy,fx+fb,self.y) allgemein: eineCanvas.coords(item,x1,y1,x2,y2,...)