Commit 3cc9b7dd7cff316f0774792289c67f958f7ac876
1 parent
193cb4c6
finished all the ground work for the sum of all torques algorithm
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
voronoi_test.py
... | ... | @@ -51,6 +51,8 @@ class Polygon_mass: |
51 | 51 | p[0] = self.CoM[0] + math.cos(phi) * (self.CoM[0] + p[0]) + math.sin(phi) * (p[1] - self.CoM[1]) |
52 | 52 | p[1] = self.CoM[1] + math.sin(phi) * (self.CoM[0] + p[0]) - math.cos(phi) * (p[1] - self.CoM[1]) |
53 | 53 | self.G.vertex_properties["pos"][v] = p |
54 | + | |
55 | + | |
54 | 56 | |
55 | 57 | def plot_graph(self, D, x, y): |
56 | 58 | plt.figure() | ... | ... |