Commit 8e344782 by ronan

### A gérer:

`x == x ou y == y pour les cercles et les breakpoints`
parent 0a814d66
 ... ... @@ -120,7 +120,8 @@ class Fortune: min = findMinCircle(p1, pi, pk) if self.isValidVertex(min) and min.point.getY() > vSite.point.getY(): if vSite.type == 0: pass on = pi print("Possible Error") min.on = on vertexVerif(min) ... ... @@ -134,9 +135,10 @@ class Fortune: self.removeEvent(vSite, pk, p2) min = findMinCircle(pi, pk, p2) if self.isValidVertex(min) and min.point.getY() > vSite.point.getY(): min.on = on if vSite.type == 0: pass on = pk print("Possible Error") min.on = on vertexVerif(min) ... ...
 ... ... @@ -20,7 +20,11 @@ def findMinCircle(p1, p2, p3): e = (x1 - x3) # Determine Center x = ((2*a*f/d) + h)/(b*(1-(4*a*e/(d*b)))) x = 0 if (1-(4*a*e/(d*b))) != 0.0: x = ((2*a*f/d) + h)/(b*(1-(4*a*e/(d*b)))) y = (2*x*e + f)/d center = Vector3D(x, y) ... ...
 ... ... @@ -191,7 +191,7 @@ if __name__ == "__main__": vec.append(Vector3D(3, 3)) vec.append(Vector3D(4.2, 4)) vec.append(Vector3D(5.2, 5)) vec.append(Vector3D(3, 5.2)) vec.append(Vector3D(3.1, 5.2)) vec.append(Vector3D(1, 6)) vec.append(Vector3D(3, 7.2)) vec.append(Vector3D(5.4, 7)) ... ...
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment