drop excess copy
This commit is contained in:
parent
d4fbe3e7e4
commit
c0127e16d5
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ def rotate(poly: poly_t, theta: float, axis: int) -> poly_t:
|
|||
'''
|
||||
s, c = sin(theta), cos(theta)
|
||||
v0 = poly['vertices'][:, axis - 2].copy()
|
||||
v1 = poly['vertices'][:, axis - 1].copy()
|
||||
v1 = poly['vertices'][:, axis - 1]
|
||||
poly['vertices'][:, axis - 2] = c * v0 - s * v1
|
||||
poly['vertices'][:, axis - 1] = s * v1 + c * v0
|
||||
return poly
|
||||
|
|
|
|||
Loading…
Reference in a new issue