vectors.py: add circlepoint(r, a)

This commit is contained in:
Florian Festi 2016-10-02 16:53:03 +02:00
parent ad00d64b26
commit 83f0c813dd
1 changed files with 2 additions and 0 deletions

View File

@ -57,6 +57,8 @@ def dotproduct(v1, v2):
"Dot product"
return v1[0] * v2[0] + v1[1] * v2[1]
def circlepoint(r, a):
return (r * math.cos(a), r * math.sin(a))
def rotm(angle):
"Rotation matrix"