Is there a 2d matrix to rotational POV library?

Is there a 2d matrix to rotational POV library? As in something where the inputs are a 2d matrix, led strip length, and an angle and I get a list of color values.

Interesting question - let me think about it. I suspect it’s pretty simple given that we have fast sin and cos already.

I tried two approaches to this. Rotate the point and then use bresenham line algo to draw the points and cos/sin to rotate all the points I actually found that the cos/sin was quickest.

Sorry for the noob questions.
Is there an aa library or some weight blending function I should use? I’d imagine to do this correctly I’d need to do a weighted average among multiple pixels. There won’t be a one to one mapping between the pixel in the 2d matrix and the virtual pixel defined by where the led is at the moment.

A function that I also had on my todo/wishlist for the coming weeks. @Garth_Bushell ​ do you mind sharing a code snippet