-
贝塞尔曲线示例
#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
-
光拼图3x3的求解
熄灯解谜算法
- 2022-03-15 03:22:41下载
- 积分:1
-
编译原理课程设计java版源代码
编译原理课程设计java版源代码,有运算符优先算法、DFA、LL1、LR
- 2022-03-31 23:27:48下载
- 积分:1
-
该资料为边角网平差计算的指导文章,并赋有相关的代码
该资料为边角网平差计算的指导文章,并赋有相关的代码-Corner of the information network adjustment calculation for the guidance of article, and are endowed with the relevant code
- 2023-04-17 12:30:03下载
- 积分:1
-
RSA大数运算
c语言写的接口,可以使用,效率不高;
里边有一个头文件和一个c文件,没有封装成类。如果需要,可以简单封装一下。
对了,返回值或参数最好改成引用或者指针
- 2023-07-12 19:50:03下载
- 积分:1
-
基于51ds1302、ds18b20数码管显示
基于51ds1302、ds18b20数码管显示 基于51ds1302、ds18b20数码管显示基于51ds1302、ds18b20数码管显示基于51ds1302、ds18b20数码管显示基于51ds1302、ds18b20数码管显示
- 2022-02-14 12:10:53下载
- 积分:1
-
乔姆斯基文法判定
此程序是用C语言写的一个编译原理实验,用数组来存储。通过对数组的操作,以及文法规则来对文法进行判断。最终判断是属于哪一类文法。
- 2022-03-13 13:18:36下载
- 积分:1
-
a good molecular dynamics procedure, it provides a lot of orders for users state...
一个很好的分子动力学程序,它提供了很多命令语句供用户进行建模和计算。-a good molecular dynamics procedure, it provides a lot of orders for users statement modeling and calculation.
- 2022-07-26 18:39:58下载
- 积分:1
-
数据挖掘中频繁项挖掘Aporial算法
该算法实现了数据挖掘中基于候选集的频繁项的挖掘,对于训练数据的处理,我们使用一个hashmap表来模拟初始阶段的数据,让后根据支持度来从候选集中找出满足支持度的频繁项,然后进行下一层的频繁项挖掘
- 2023-09-02 10:30:03下载
- 积分:1
-
vc wrote of the source is the type of game procedures. Calling many of the syste...
vc写的源程序,是关于游戏类的程序。调用了系统的很多API-vc wrote of the source is the type of game procedures. Calling many of the system API
- 2022-07-17 18:20:39下载
- 积分:1