📜  roblox 使用半径、中心和角度围绕圆查找点 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:25.848000             🧑  作者: Mango

代码示例1
--Radius
local r = 2

--Center (X,Y)
local c = Vector2.new(5,7)

--Theta(Angle of progression around the circle)
local t = 95

--Finding Point (X,Y)
local Point = Vector2.new(c.X + r * math.cos(t), c.Y + r * math.sin(t))