vectors.py: add circlepoint(r, a)
This commit is contained in:
parent
ad00d64b26
commit
83f0c813dd
|
@ -57,6 +57,8 @@ def dotproduct(v1, v2):
|
||||||
"Dot product"
|
"Dot product"
|
||||||
return v1[0] * v2[0] + v1[1] * v2[1]
|
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):
|
def rotm(angle):
|
||||||
"Rotation matrix"
|
"Rotation matrix"
|
||||||
|
|
Loading…
Reference in New Issue