How to rotate, scale, and translate a matrix all at once in C#?

后端 未结 4 2086
难免孤独
难免孤独 2020-12-31 19:39

Okay, this is something that should be a simple matrix question, but my understanding of matrices is somewhat limited. Here\'s the scenario: I have a 1px by 1px sprite tha

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-31 20:15

    Are you rotating around the correct axis? I'm a newbie at matrix stuff, but it seems to me that since the sprite exists in the x, y space, the rotation axis should be the Z-Axis - i.e. (0,0,1).

提交回复
热议问题