package b; public class Rect { Double width; Double height; public Double getWidth() { return width; } public void setWidth(Double width) { this.width ...
分类:
其他好文 时间:
2016-05-23 17:05:03
阅读次数:
392
function GetSlideDirection(startX, startY, endX, endY) { var dy = startY - endY; //var dx = endX - startX; var result = 0; if(dy>0) {//向上滑动 result=1; ...
分类:
移动开发 时间:
2016-03-30 19:41:11
阅读次数:
577
var startX, startY, isStart; //在外部声明startX以用于touchmove和touchend的函数中$('nav').on('touchstart', function(evt) { //手指按倒屏幕上的坐标 var target = evt.targetTo...
分类:
其他好文 时间:
2015-11-16 12:21:35
阅读次数:
185
@implementation ViewControllerUILabel *labelView;int startX;int startY;- (void)viewDidLoad { [super viewDidLoad]; startX = 100; startY = 100; la...
分类:
其他好文 时间:
2015-11-09 18:34:15
阅读次数:
195
一、采用触摸事件touchmove。1、定义公共变量vartimer=null;varstartY,moveY,initTop,oldTop,newTop;2、添加事件$(‘#containerul‘).on(‘touchstart‘,function(e){startY=e.originalEvent.touches[0].pageY;initTop=0;}); $(‘#containerul‘).on(‘touchmove‘,function(e){moveY=e..
分类:
移动开发 时间:
2015-09-10 17:45:15
阅读次数:
798
1. 单个雨点的行为2. 完善雨点的行为和构造下雨场景3. 在XML中定义可以控制下雨的属性------------------------------------------------------1. 单个雨点的行为: 一条线段在运动 起始点:startX , startY; 终止点:stop....
分类:
移动开发 时间:
2015-09-02 20:32:52
阅读次数:
405
就像QQ宠物或者迅雷悬浮窗口一样,鼠标点下去窗体跟着鼠标动主要是两个时间的加载MouseDown和MouseMove事件MouseDown事件:1 private int _StartX ;//鼠标点下去的坐标2 private int _StartY ;3 ...
分类:
其他好文 时间:
2015-08-29 09:45:33
阅读次数:
191
#include
#include
using namespace std;
void Grial(int (*a)[5],int n)
{
//数组顺时针旋转90度。
//边界值的考虑让我小小的思考了一下。
int temp;
int startX = 0;
int startY = 0;
int j = 0...
分类:
编程语言 时间:
2015-08-21 21:31:11
阅读次数:
312
#include
#include
using namespace std;
struct node
{
int x;//点的坐标
int y;
int s;//记录步数
};
int main()
{
int startx,starty;
int endx,endy;
int tx,ty;
int n,m;
int k;
...
分类:
其他好文 时间:
2015-08-13 23:48:04
阅读次数:
186
/*
0表示海洋
1~9都表示陆地
startx,starty为着陆地点
算出降落小岛的面积
*/#include
using namespace std;
struct node
{
int x;
int y;
};
int main()
{
int a[50][50];
node que[2051];
int n,m;
int startx,st...
分类:
其他好文 时间:
2015-08-12 23:40:50
阅读次数:
279