Skip to content

Tag: matrix

JS: convert 2D matrix into another?

I have a 2D matrix with an -1000 to + 1000 X/Y coordinate system. For plotting purposes, I want to transform that into another coordinate system, where 0,0 is at the top left. Any idea how to do that? I know how to do a linear projection of a single axis, but doing that independently yields distortions, especially if the