摘要:
利用点积和叉积列方程(x0,y0)X (x1,y1) = sin(120)*R^2 (r为圆的半径)(x0,y0) * (x1,y1) = cos(120)*R^2结果为:x1=b*x0-a*y0;a=sin120;y1=b*y0+a*x0; b=cos120;View Code #include <iostream>#include <cstdio>#include <cstdlib>#include <cstring>#include <cmath>using namespace std;#define eps 0.0005voi 阅读全文