当前位置:网站首页>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时,圆就开始正了
边栏推荐
- Wechat nucleic acid detection and appointment applet system graduation design (3) background function
- ESP32-C3入门教程 问题篇⑪——esp-tls: create_ssl_handle failed, tls_io_instance->options.trusted_certs null
- NM02-独立于总线协议的NM模块调用序列图及代码解释
- 怎么可以省去大量的switch语句,省去switch语句
- QQmlApplicationEngine
- 微信核酸检测预约小程序系统毕业设计毕设(4)开题报告
- 微信核酸检测预约小程序系统毕业设计毕设(2)小程序功能
- Leetcode 面试题 16.17. 连续数列
- Leetcode 面试题 17.01. 不用加号的加法
- wait_ for_ Gap -- restore archive from primary archive to secondary Archive
猜你喜欢

1288_FreeRTOS中vTaskResume()接口以及中断安全版本接口实现分析

如何开启IDEA的Run Dashboard功能

Wechat nucleic acid detection appointment applet system graduation design completion (1) development outline

Wechat applet video sharing platform system graduation design completion (8) graduation design thesis template

Leetcode 面试题 16.15. 珠玑妙算

Editor Editor Extension add button and logo in scene view

Please, stop painting star! This has nothing to do with patriotism!

Wechat applet video sharing platform system graduation design completion (6) opening defense ppt

Wechat applet video sharing platform system graduation design completion (4) opening report

MySQL advanced - transaction and index
随机推荐
Mysql - opérations de base de la base de données
铁塔安全监测系统 无人值守倾角振动监测系统
MySQL -- basic operation of database
iframe嵌套详解
利用DOSBox运行汇编超详细步骤「建议收藏」
Three methods of MySQL backup
MySQL -- basic concept of database
A good programmer is worth five ordinary programmers!
Editor Editor Extension add button and logo in scene view
QT official example: QT quick controls - Gallery
vimium映射鍵
wait_ for_ Gap -- restore archive from primary archive to secondary Archive
D constructor problem
毕业总结
pycharm 修改 pep8 E501 line too long > 0 characters
[Oracle final review] addition, deletion and modification of tablespaces, tables, constraints, indexes and views
Is Guojin securities a state-owned enterprise? Is it safe to open an account in Guojin securities?
Interview, about thread pool
Leetcode 面试题 16.17. 连续数列
微信小程序视频分享平台系统毕业设计毕设(2)小程序功能