I have two translation matricies in the form of
[
[1, 0, dx],
[0, 1, dy],
[0, 0, 1]
]
Is there a multiplication I can do which would leave me with:
[
[1, 0, dx1],
[0, 1, dy2],
[0, 0, 1]
]
And another which would leave me with
[
[1, 0, dx2],
[0, 1, dy1],
[0, 0, 1]
]
For context, I have the translations of two opposite points of a quad with centre 0,0. I would like to use matrix multiplication to get the other two points of the quad, which would each be equal to the X value of one point and the Y value of the opposite. I get the quad to the origin by a series of transforms, so I was hoping to use more matrix multiplication, rather than plucking values out of a matrix to plug them in another again.
I tried applying a scale matrix but when they get multiplied back in they result in 0's where there shouldn't be 0's (I'm not a mathematician, you can probably tell).