This is a demo for a small custom block pack I made for matrix transformations. In short, it will allow you apply rotations, translations and scaling to a bunch of points and also reverse it (in this example to convert the mouse coordinates back into grid coordinates, round them and then convert them back). Feel free to use these if you want, just remember to credit me when you do so :) By the way, I've recently started a small game-dev related youtube channel, so if you are interested in that, here's the link: https://www.youtube.com/channel/UCfqpe8FS99zSPUmjd4_3jGA