当前位置:网站首页>UE4 用spline画正圆
UE4 用spline画正圆
2022-07-02 16:45: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时,圆就开始正了
边栏推荐
- Installation tutorial and simple call of Matplotlib
- Please, stop painting star! This has nothing to do with patriotism!
- 巴比特 | 元宇宙每日必读:一千块就能买一个虚拟主播?这是小企业的直播福音还是在“割韭菜”?...
- 自定义一个loading指令
- Wechat applet video sharing platform system graduation design (3) background function
- PHP gets the number of days, hours, minutes and seconds between the two timestamps
- 【西北工业大学】考研初试复试资料分享
- Calculation of favorable comment rate
- Qt官方示例:Qt Quick Controls - Gallery
- 515. Find the maximum value in each tree row
猜你喜欢
MySQL advanced - transaction and index
Detailed explanation of map set
QT official example: QT quick controls - Gallery
Pychar modify pep8 e501 line too long > 0 characters
MySQL --- 数据库的基本概念
Wechat nucleic acid detection appointment applet system graduation design completion (4) opening report
RDK仿真实验
MySQL -- basic operation of database
Microsoft LDAP 配置页中输入有效的用户名及密码,microsoft ldap 配置页中输入有效的用户名
微信小程序视频分享平台系统毕业设计毕设(2)小程序功能
随机推荐
微信小程序视频分享平台系统毕业设计毕设(4)开题报告
Leetcode 面试题 17.04. 消失的数字
win10 kms activator
NM01-独立于总线协议的NM模块功能概述与API定义
NVIDIA graphics card failed to initialize nvml driver/library version mismatch error solution
Pit encountered during installation of laravel frame
Graduation summary
好玩的免费GM游戏整理汇总
ESP32-C3入门教程 问题篇⑩——error: implicit declaration of function ‘esp_blufi_close‘;
qt的内存映射
567. Arrangement in string
MySQL --- 数据库的基本操作
铁塔安全监测系统 无人值守倾角振动监测系统
Iframe nesting details
Unity学习shader笔记[八十二]增强单通道颜色渲染的黑白处理
Leetcode 面试题 16.15. 珠玑妙算
Hbuilderx runs to the mobile phone or simulator and prompts that the device is not found
Mysql - opérations de base de la base de données
Deep understanding of ThreadLocal
Freemaker+poi realizes dynamic generation and parsing of Excel files