当前位置:网站首页>UE4 用spline畫正圓
UE4 用spline畫正圓
2022-07-02 18:24:00 【道之所在】
已知變量: R: 圓的半徑
PointNum:點的數量(包含初始點)
StartPoint:第一個點的比特置
SingleArcLength:點與點之間的弧長
CreateCurrentPointIndex:正在創建的當前點的索引
1.先設置第一個點的比特置,因為以根組件為圓心,所以只設置X為R
2.計算出圓周長後,通過點的個數,計算出每個點之間的弧長
3.通過弧長和第一個點計算出需要創建點的比特置
4.直接套公式
效果:
運用的方程式:
x=√(a²+b²)·sin﹛[c/√(a²+b²)]-arcsin[a/√(a²+b²)]﹜
y=√(a²+b²)·cos﹛[c/√(a²+b²)]-arcsin[a/√(a²+b²)]﹜
點越多越正,一般點數量>=5時,圓就開始正了
边栏推荐
- Use Zadig to build a continuous delivery platform from 0 to 1
- 毕业总结
- wait_ for_ Gap -- restore archive from primary archive to secondary Archive
- Steamos 3.3 beta release, steam deck Chinese keyboard finally came
- No such file or directory: ‘/tmp/tmpxxx/tmpxxx. py‘
- Wechat nucleic acid detection appointment applet system graduation design completion (4) opening report
- Use dosbox to run the assembly super detailed step "suggestions collection"
- NVIDIA graphics card failed to initialize nvml driver/library version mismatch error solution
- 【愚公系列】2022年07月 Go教学课程 001-Go语言前提简介
- A4988与42步进电机
猜你喜欢
1288_FreeRTOS中vTaskResume()接口以及中断安全版本接口实现分析
Explain kubernetes network model in detail
NM01-独立于总线协议的NM模块功能概述与API定义
Leetcode 面试题 16.17. 连续数列
如何开启IDEA的Run Dashboard功能
Wechat nucleic acid detection and appointment applet system graduation design (3) background function
WPS inserts a picture and displays it completely
Pit encountered during installation of laravel frame
[Northwestern Polytechnic University] information sharing of the first and second postgraduate examinations
Picking up the camera is the best artistic healing
随机推荐
如何开启IDEA的Run Dashboard功能
Chrome officially supports MathML, which is enabled in chromium dev 105 by default
1288_FreeRTOS中vTaskResume()接口以及中断安全版本接口实现分析
515. Find the maximum value in each tree row
Deep understanding of ThreadLocal
1.5.1版本官方docker镜像运行容器,能设置使用 mysql 8驱动吗?
Wechat applet video sharing platform system graduation design (2) applet function
Aloam code reading and summary
Typescript
Android cycle timer implementation, to achieve fixed Android cache cleaning
How to download wechat payment certificate (API certificate)
977. Square of ordered array
Vi/vim delete: one line, one character, word, the first character of each line command
vi/vim 删除:一行, 一个字符, 单词, 每行第一个字符 命令
Unity learning shader notes [82] black and white processing of enhanced single channel color rendering
Leetcode 面试题 17.01. 不用加号的加法
D构造函数问题
Aptos tutorial - participate in the official incentive testing network (ait2 incentive testing network)
D constructor problem
Wechat applet video sharing platform system graduation design completion (8) graduation design thesis template