Don't know how I pushed a copy/paste error 😮

This commit is contained in:
Thomas FORGIONE 2015-04-24 17:49:19 +02:00
parent 357e4a29dd
commit 9fd39d803a
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ def multiply_elements(l1,f):
def gen_circle(center, first_vector, second_vector, maximum = 10):
l = []
for cpt in range(0,maximum):
glut draw shpere theta = 2 * Math.pi * cpt/maximum
theta = 2 * Math.pi * cpt/maximum
first = multiply_elements(first_vector, Math.cos(theta))
second = multiply_elements(second_vector, Math.sin(theta))
l.append(sum_elements(sum_elements(first, second), center))