Skip to content

Commit 7012a0a

Browse files
committed
Fix indices and typos in rotation docs
1 parent 0b7503e commit 7012a0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,6 @@ Let us consider a rotation by the angle `theta` from the image center.
149149

150150
We must tranform each flow vector based on the coordinates where it lands. On each coordinate `(i, j)`, we have:
151151
```
152-
flow[i, j, 0] += (cos(theta) - 1) * (i - w/2 + flow[i, j, 0]) + sin(theta) * (j - h/2 + flow[flow[i, j, 1])
153-
flow[i, j, 1] += -sin(theta) * (i - w/2 + flow[i, j, 0]) + (cos(theta) - 1) * (j - h/2 + flow[flow[i, j, 1])
152+
flow[i, j, 0] += (cos(theta) - 1) * (j - w/2 + flow[i, j, 0]) + sin(theta) * (i - h/2 + flow[i, j, 1])
153+
flow[i, j, 1] += -sin(theta) * (j - w/2 + flow[i, j, 0]) + (cos(theta) - 1) * (i - h/2 + flow[i, j, 1])
154154
```

0 commit comments

Comments
 (0)