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.
中心を中心にある角度で回転させた長方形があります。長方形から頂点を導出するにはどうすればよいですか?
回転行列を頂点に適用します。
たとえば、原点が長方形の中心にあり、頂点の座標が vx と vy によって与えられる場合、この頂点の新しい座標は次のように与えられます。
v_new.x=v.x*cos(angle)-v.y*sin(angle) v_new.y=v.x*sin(angle)+v.y*cos(angle)
(反時計回りの回転を仮定)