-
lfm
说明: FOR RADAR DETECTINO BY USING C++ IN visual DSP
- 2019-11-27 14:52:29下载
- 积分:1
-
wpf滑动效果 实例源码
鼠标拖动时 控件滑动 截图: 核心代码:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using System.Windows.Media.Imaging;using System.Windows.Navigation;using System.Windows.Shapes;using System.Windows.Media.Animation;namespace FlashPrac2{ /// /// MainWindow.xaml 的交互逻辑 /// public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); } /// /// 完成缓冲效果 /// /// 起始位置 /// 目标位置 /// 加速加速度 /// 减速加速度 /// 持续时间 private void DoMove(DependencyProperty dp, double to, double ar, double dr, double duration) { DoubleAnimation doubleAnimation = new DoubleAnimation();//创建双精度动画对象 doubleAnimation.To = to;//设置动画的结束值 doubleAnimation.Duration = TimeSpan.FromSeconds(duration);//设置动画时间线长度 doubleAnimation.AccelerationRatio = ar;//动画加速 doubleAnimation.DecelerationRatio = dr;//动画减速 doubleAnimation.FillBehavior = FillBehavior.HoldEnd;//设置动画完成后执行的操作 grdTransfer.BeginAnimation(dp, doubleAnimation);//设置动画应用的属性并启动动画 } private double pressedX; /// /// 点击鼠标,记录鼠标单击的位置 /// /// /// private void grdTest_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e) { ////获得鼠标点击的X坐标 pressedX = e.GetPosition(cvsGround).X; } ////鼠标释放时的操作 private void grdTest_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e) { double transferLeft = Convert.ToDouble(grdTransfer.GetValue(Canvas.LeftProperty)); //btn1.Content = transferLeft.ToString(); if (transferLeft > 0) { transferLeft = 0; } if (this.Width - transferLeft > cvsGround.Width) { transferLeft = this.Width - cvsGround.Width; } ////获得鼠标释放时的位置 double releasedX = e.GetPosition(cvsGround).X; ////获得距离间隔 double interval = releasedX - pressedX; pressedX = 0; ////计算出传送带要的目标位置 double to = transferLeft interval; ////移动 //btn1.Content = transferLeft.ToString() " " to.ToString(); // btn1.Content = transferLeft.ToString() " " to.ToString(); DoMove(Canvas.LeftProperty, to, 0.1, 0.5, 0.5); } }}
- 2014-06-24下载
- 积分:1
-
BFSN
BFSN算法简单,实现容易,避免了复杂计算,时间复杂度低,聚类结果精确;
聚类过程中能够发现同类对象之间的相异程度,而这一点许多算法达不到;
需要输入的2个参数基本上可以估算;
能够发现孤立点,发现任意形状的聚类;
对输入数据的顺序基本不敏感。
- 2022-07-08 02:27:15下载
- 积分:1
-
TCPfiletransfer
这是一个采用TCP/IP协议进行文件传输的例子,对初学者有帮助。(This is a use of TCP/IP protocol for file transfer example, be helpful for beginners.)
- 2009-05-05 16:14:57下载
- 积分:1
-
单纯性法C++
使用单纯形法求解线性规划问题,求最优解不停迭代(Simplex method is used to solve linear programming problems and the optimal solution is iterated continuously.)
- 2020-06-23 21:20:01下载
- 积分:1
-
BezierCurve
说明: Bezier曲线的绘制,多项式系数的值由函数GetCnk计算,沿曲线路径的坐标位置由函数GetPointPr计算,最后由BezierCurve函数通过OpenGL画点功能实现曲线绘制。这里绘制的是一个包含4个控制点的三次Bezier曲线。(In Bezier curve drawing, the value of polynomial coefficients is calculated by function GetCnk, the coordinate position along the curve path is calculated by function GetPointPr, and finally the curve is drawn by Bezier Curve function through OpenGL point drawing function. Here we draw a cubic Bezier curve with four control points.)
- 2020-06-16 06:40:02下载
- 积分:1
-
MTK_LCD_driver_porting
LCM Driver Porting
Hardware Architecture
LCDsoftware Architecture
Files related to LCD driver
LCM driver porting procedure
CASE STUDY
Reference( Hardware Architecture
LCDsoftware Architecture
Files related to LCD driver
LCM driver porting procedure
CASE STUDY
Reference)
- 2009-06-15 02:05:02下载
- 积分:1
-
M61540
说明: 针对音量IC:M61540的控制程序,适合5.1音响系统。(For volume IC: M61540 control procedures, suitable for 5.1 sound system.)
- 2008-08-28 19:56:40下载
- 积分:1
-
杨叶涛(暑期GIS和地学空间分析)
说明: 主要是关于中国地质大学地球物理与空间信息学院的暑期GIS编程及地球信息科学分析,对想了解GIS编程以及空间分析很有帮助。(It is mainly about the summer GIS programming and the scientific analysis of geo-information in the School of Geophysics and Spatial Information, China University of Geosciences. It is very helpful to understand the GIS programming and spatial analysis.)
- 2019-04-22 16:12:36下载
- 积分:1
-
A-1
Programm is counting inverse matrix
- 2011-06-10 22:08:22下载
- 积分:1