pi = acos(-1);
double getlen(int n,double r) { return 2.0*r*tan(pi/n);
}
转载于:https://www.cnblogs.com/shimu/p/5929461.html
pi = acos(-1);
double getlen(int n,double r) { return 2.0*r*tan(pi/n);
}
转载于:https://www.cnblogs.com/shimu/p/5929461.html