在给定圆心和半径的情况下,在圆的圆周上查找点的公式 [英] Formula to find points on the circumference of a circle, given the center of the circle and the radius

查看:75
本文介绍了在给定圆心和半径的情况下,在圆的圆周上查找点的公式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写代码,以在圆的圆周上找到点。我具有圆心和半径,我需要在其周围绘制一个圆。这将帮助我定义边界。请帮助我提供在圆周上找到这些点的公式。

I am working on code to find the points on the circumference of a circle. I have the center point of the circle and the radius and I need to draw a circle around it. This will help me define the boundary. Please help me with formula for finding the these points on the circumference.

推荐答案

对于原点为(j,k)且半径为 的圆r

For a circle with origin (j, k) and radius r:

x(t)= r cos(t)+ j

y(t)= r sin (t)+ k

x(t) = r cos(t) + j
y(t) = r sin(t) + k

您需要在 t 上运行此等式,并采用0范围内的值到360,则您的 x y 分别位于圆的边界上。

where you need to run this equation for t taking values within the range from 0 to 360, then you will get your x and y each on the boundary of the circle.

有关更多信息:
http ://www.math.com/tables/geometry/circles.htm

这篇关于在给定圆心和半径的情况下,在圆的圆周上查找点的公式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆