-
贝塞尔曲线示例
#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
-
一维搜索程序――黄金分割点方法,我自己编的!大家多多下载,多多支持啊!...
一维搜索程序――黄金分割点方法,我自己编的!大家多多下载,多多支持啊!-one-dimensional search procedures-- Golden Section point, I developed! Members can download the generous support ah!
- 2023-08-05 10:15:03下载
- 积分:1
-
杜利特分解中选定的主要元素的数值分析…
数值分析中的Doolittle选主元素分解法解方程组。-Numerical analysis of selected major elements in the Doolittle decomposition method solution of equations.
- 2022-03-16 16:44:30下载
- 积分:1
-
牛顿插值的差商迭代算法,c语言实现
牛顿插值的差商迭代算法,c语言实现-Newton interpolation algorithm to worse, the C Language
- 2022-03-15 21:33:46下载
- 积分:1
-
本文从理论上推导出CRC 算法实现原理,给出三种分别适应不同计算机或微控
制器硬件环境的C 语言程序。读者更能根据本算法原理,用不同的语言编写出独特风格...
本文从理论上推导出CRC 算法实现原理,给出三种分别适应不同计算机或微控
制器硬件环境的C 语言程序。读者更能根据本算法原理,用不同的语言编写出独特风格
更加实用的CRC 计算程序。-This paper theoretically deduced from the principles of CRC algorithm is given three separate computers or micro-controller to adapt to different hardware environment of the C language program. According to this algorithm the reader a better theory, in different languages a unique style of the CRC calculation program more practical.
- 2022-02-15 19:33:59下载
- 积分:1
-
XP下的MPICH1.2.5软件包,用来做并行计算的最好开发环境!
XP下的MPICH1.2.5软件包,用来做并行计算的最好开发环境!-the mpich1.2.5 softpack in xp system is the best develope enviroment for parallel computing
- 2022-07-02 19:58:24下载
- 积分:1
-
全波形反演程序
本程序使用forten编写的,内容详细,可运行得到反演结果,解压后,主要程序在名为src的文件夹中,正演部分采用交错网格有限差分法,反演基于共轭梯度实现
- 2022-09-09 17:45:03下载
- 积分:1
-
旋转的正方体
旋转的正方体,可以自己控制 旋转的正方体 的旋转方向 调用4个函数就行
- 2023-04-20 04:55:03下载
- 积分:1
-
数值分析第八版的负担和菲尔斯(源程序)
Numerical Anaysis 8th Edition Burden and Faires (Fortran Source)
- 2022-03-25 18:49:00下载
- 积分:1
-
差分微积分used to anticipate and respond to the uncertain future.
差分微积分used to anticipate and respond to the uncertain future.-Differential calculus used to anticipate and respond to the uncertain future.
- 2022-03-07 09:32:15下载
- 积分:1