-
贝塞尔曲线示例
#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
-
adc intrfacing
这篇文章提供了使用PIC16F877微控制器的ADC代码。这段代码是用C语言编写的,使用MPLAB和高科技的C编译器。您可以从“下载”网站下载此代码
- 2022-03-19 08:57:27下载
- 积分:1
-
工程问题中常用微分方程的形式建立数学模型,所以微分方程求解很有意义。本程序用Euler、改进Euler和经典公式对这类方程进行求解...
工程问题中常用微分方程的形式建立数学模型,所以微分方程求解很有意义。本程序用Euler、改进Euler和经典公式对这类方程进行求解-Engineering problems commonly used in the form of differential equations to establish the mathematical model, it makes sense for solving differential equations. This procedure used Euler, improved Euler and the classical formula of such equations to solve
- 2022-03-17 06:09:21下载
- 积分:1
-
J48实现数据挖掘c4.5
代码是数据挖掘技术中使用的,用Java编写。实际上就是数据挖掘技术中决策树的C45算法。
- 2022-03-25 10:01:43下载
- 积分:1
-
This function calculates the peaks in a vector V.
This function calculates the peaks in a vector V.
- 2022-07-19 15:20:49下载
- 积分:1
-
埃尔米特等距插值
埃尔米特等距插值-Hermite"s equidistant interpolation
- 2022-12-16 00:35:03下载
- 积分:1
-
外部排序
来自于西南交通大学 电气工程学院的专业,电子信息工程专业的数据结构课程的实验代码。DS_1即为实验作业一,以此类推。内容从前到后含有顺序表的顺序存储,链式存储,还有栈和队列的各种基本操作。
- 2022-03-22 03:15:24下载
- 积分:1
-
keccak实现的sha3
资源描述这是用C语言实现的hash算法,sha3。这是用C语言实现的hash算法,sha3。这是用C语言实现的hash算法,sha3。这是用C语言实现的hash算法,sha3
- 2022-03-23 17:02:24下载
- 积分:1
-
复化梯形公式 数值算法
复化梯形公式 数值算法-Minute trapezoid formula Numerical Algorithms
- 2022-05-12 19:17:09下载
- 积分:1
-
MPEG —PS封装
一个关于MPEG-PS格式的封装,封装规则依照ISO_IEC_13818-1进行。封装后可用一般播放器播放,比如VLC,暴风影音等普通播放器播放。代码已经测试过可用。2个工程一个是打包的 一个是解包的。
- 2022-05-12 22:12:09下载
- 积分:1