当前位置:网站首页>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時,圓就開始正了
边栏推荐
- Clé de cartographie vimium
- 微信小程序视频分享平台系统毕业设计毕设(1)开发概要
- Relax again! These fresh students can settle directly in Shanghai
- 微信核酸检测预约小程序系统毕业设计毕设(1)开发概要
- Wechat applet video sharing platform system graduation design completion (6) opening defense ppt
- Pit encountered during installation of laravel frame
- Esp32-c3 introductory tutorial question ⑩ - error: implicit declaration of function 'ESP_ blufi_ close‘;
- NM02-独立于总线协议的NM模块调用序列图及代码解释
- 再放宽!这些应届生,可直接落户上海
- Embedded development board ~ description
猜你喜欢

Leetcode 面试题 16.15. 珠玑妙算

微信小程序视频分享平台系统毕业设计毕设(3)后台功能

Chrome officially supports MathML, which is enabled in chromium dev 105 by default

Nvidia 显卡 Failed to initialize NVML Driver/library version mismatch 错误解决方案

再放宽!这些应届生,可直接落户上海

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

微信核酸检测预约小程序系统毕业设计毕设(1)开发概要

Wechat applet video sharing platform system graduation design (2) applet function

能解决80%故障的排查思路

MySQL -- basic operation of database
随机推荐
RDK仿真实验
Vimium mapping key
Wechat applet video sharing platform system graduation design completion (8) graduation design thesis template
Mysql - opérations de base de la base de données
微信核酸检测预约小程序系统毕业设计毕设(1)开发概要
[games101] operation 4 B é zier curve
NM01-独立于总线协议的NM模块功能概述与API定义
Relax again! These fresh students can settle directly in Shanghai
Babbitt | metauniverse daily must read: can you buy a virtual anchor for 1000 yuan? Is this the live gospel of small businesses or "cutting leeks"
Three methods of MySQL backup
719. Find the distance of the number pair with the smallest K
Unity学习shader笔记[八十二]增强单通道颜色渲染的黑白处理
2020互联网行业术语
怎么可以省去大量的switch语句,省去switch语句
Editor编辑器扩展在Scene View添加按钮和logo
微信小程序视频分享平台系统毕业设计毕设(7)中期检查报告
MySQL installation and configuration
em120.gige. h
面试,关于线程池的那些事
Wechat applet video sharing platform system graduation design completion (5) assignment