Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
默认旋转中心是 View center ,但现在我想从底部旋转矩阵?
Android API 有一个方法:但我不知道参数是什么意思。
公开声明boolean android.graphics.Matrix.postRotate(float degrees, float px, float py)
boolean android.graphics.Matrix.postRotate(float degrees, float px, float py)
使用指定的旋转对矩阵进行后连接。M' = R(度, px, py) * M
参数:度数px py
px和的值是要围绕其旋转的对象py的点。pivot
px
py
pivot