任意の点を中心としての回転

#include <math.h>

/**
* 任意の点を中心としての回転
* 点(x1,y1)を中心軸として、点(x2,y2)を特定の方向(角度)に回転した座標を求める
*
* http://www.dokidoki.ne.jp/home2/yoshieo/dx/suu.html
*/
static double test()
{
double atai_x = (x2 - x1) * cos( rty ) - (y2 - y1) * sin( rty );
double atai_y = (x2 - x1) * sin( rty ) + (y2 - y1) * cos( rty );
}
最終更新:2009年04月03日 14:20
ツールボックス

下から選んでください:

新しいページを作成する
ヘルプ / FAQ もご覧ください。