-
贝塞尔曲线示例
#include < iostream >
#include < 矢量 >
#include < math.h >
#include"BezierPoint.h"
使用命名空间 std ;
BezierPoint 贝塞尔 (方法 < BezierPoint > & pts,双 t) ;
双选择 (双 a,双 b) ;
双 factorial(double num) ;
int main(void) {
方法 < < BezierPoint >> 方法警校 ;
char endPointCount = 0;
双 inx ;
双 iny ;
int ptCount = 0;
int 终结点 ;
双 deltaT ;
cin >> ptCount >> deltaT ;
为 (int 我 = 0 ; 我 < ptCount; i + +) {
cin >> inx >> iny >> 终结点 ;
BezierPoint p iny inx) ;
如果 (endPointCount = = 0 & & 终结点 = = 1) {
pts.push_back (方法 < BezierPoint > ()) ;
pts[pts.size()-1].push_back(p) ;
endPointCount + +;
继续 ;
}
pts[pts.size()-1].push_back(p) ;
如果 (endPointCount! = 0 & & 终结点 = = 1 & & 我! = ptCount-1) {
pts.push_back (方法 < BezierPoint > ()) ;
pts[pts.size()-1].push_back(p) ;
endPointCount + +;
}
}
为 (std::s
- 2022-03-13 19:08:01下载
- 积分:1
-
串口转以太网程序
此源文件是串口转以太网的程序文件,芯片采用的stm32单片机,里面各种标注。
- 2022-07-12 19:19:12下载
- 积分:1
-
PCA人脸识别源代码
PCA进行人脸识别的好算法,可以应用于人脸识别系统PCA是进行人脸识别的经典算法,其算法应用的领域也非常的广泛在本代码中,有详细的PCA算法流程实现,使用C语言进行编程
- 2022-02-04 10:06:09下载
- 积分:1
-
二维三点高斯积分公式
二维三点高斯积分公式-2D Gaussian integral formula
- 2023-03-16 11:00:04下载
- 积分:1
-
简单计算器(带密码“111111”) 进行简单的数字计算 包括“+” “...
简单计算器(带密码“111111”) 进行简单的数字计算 包括“+” “-” “*” “/” “乘方” -simple calculator (with the password "111 ") Simple arithmetic including "" "-" "*", "/", "involution"
- 2023-02-20 16:40:03下载
- 积分:1
-
一种新的受限扩散池模型
一种新的受限扩散凝聚模型--单向扩散凝聚模型DLUA,输入不同的参数可产生各种不同的图案,可作为辅助研究或教学演示。-a new pool of restricted diffusion model-- the proliferation of one-way model DLUA rally, importation of different parameters can produce a variety of designs, as a complementary research or teaching demonstration.
- 2022-03-07 16:53:46下载
- 积分:1
-
pl_chdir.lsp
此程序功能: Visual lisp 文件显示和折线方向扭转过来。描述和方法的使用: 装载您的看法文件之后, 使用 PLDIR 命令显示折线的方向。使用命令 POV 很可能要反转折线的方向。
- 2023-02-15 13:00:03下载
- 积分:1
-
电弧炉对电网影响仿真软件,希望对大家有所帮助
电弧炉对电网影响仿真软件,希望对大家有所帮助-EAF impact on the power grid simulation software, want to help everyone
- 2022-04-21 21:34:06下载
- 积分:1
-
MFC俄罗斯方块
Windows下基于MFC的俄罗斯方块,拥有绚丽的界面。对于方块使用4*4的数组进行存储,游戏所在的墙同样使用数组存储,每次由定时器触发一次更新,如果方块能够下降则下降,否则随机生成一个方块以及一种颜色,通过每次下降前做碰撞检测来实现。
- 2022-02-28 18:45:13下载
- 积分:1
-
关于狄洛尼三角剖分的c++代码
用c++代码实现狄洛尼三角剖分过程,主要考虑到的因素有:(1) 占用的内存空间;(2)是否包含三角网中的各三角形、边及节点间的拓扑关系;(3)数据结构使用的效率。经编译,可以运行
- 2023-04-10 16:10:04下载
- 积分:1