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