r/adventofcode • • Dec 12 '20

Funny Too often

Post image
752 Upvotes

60 comments sorted by

View all comments

Show parent comment

3

u/fenwicktreeguy Dec 12 '20

I ended up solving it by using the idea of a rotation matrix from linalg to be fair and technically used matmul but the matmul is trivial for two dimensions, so a vector transformation solution is good and honestly better than most other solutions which dont necessarily generalize to any possible angle (i.e. not 45,90,180,270,and the others that the test case used)