附图一张镇楼, 字丑见谅!
一.描述
r:半径
p1(x, y):圆点坐标
p2(a, b): 圆上某一点坐标
二.基础知识
cosA = b/c
sinA = a/c
三.计算出圆上的某一点坐标
cos(A) = (a-x)/r;
=> a = x + r*cos(A);
sin(A) = (b-y)/r;
=> b = y + r*sin(A);
得出该点坐标:
p2(x + r*cos(A), y + r*sin(A))
附图一张镇楼, 字丑见谅!
r:半径
p1(x, y):圆点坐标
p2(a, b): 圆上某一点坐标
cosA = b/c
sinA = a/c
cos(A) = (a-x)/r;
=> a = x + r*cos(A);
sin(A) = (b-y)/r;
=> b = y + r*sin(A);
得出该点坐标:
p2(x + r*cos(A), y + r*sin(A))