代码搜索:Direction
找到约 10,000 项符合「Direction」的源代码
代码结果 10,000
www.eeworm.com/read/403009/11524640
cpp randwalk.cpp
// randwalk.cpp -- using the Vector class
// compile with the vect.cpp file
#include
#include // rand(), srand() prototypes
#include // time() prototype
#
www.eeworm.com/read/402283/11539719
m mm2408.m
% mm2408.m
[x,y,z] = peaks; % default output of peaks
dx = x(1,2) - x(1,1); % spacing in x direction
dy = y(2,1) - y(1,1); % spacing in y direction
L = del2(z,dx,dy);
surf(x,y,z,abs(L))
shading inter
www.eeworm.com/read/402283/11539784
m mm2407.m
% mm2407.m
[x,y,z] = peaks(20); % simple 2-D function
dx = x(1,2) - x(1,1); % spacing in x direction
dy = y(2,1) - y(1,1); % spacing in y direction
[dzdx,dzdy] = gradient(z,dx,dy);
contour(x,y,z)
hol
www.eeworm.com/read/402117/11543006
m makeellip.m
function [x, y]= makeellip( x0, y0, radiusx, radiusy, angleinterval)
% (x0, y0 ) = center of circle
% radiusx = radius in x direction (a)
% radiusy = radius in y direction (b)
% angleinterval = a
www.eeworm.com/read/402079/11543289
cs snake.cs
using System;
using System.Drawing;
using System.Collections;
namespace WindowsApplication9
{
public delegate void SnakeDele();
public class Snake
{
public Snake()
{
}
pu
www.eeworm.com/read/401845/11547269
in config.h.in
/* src/config.h.in. Generated automatically from configure.in by autoheader. */
/* Define if using alloca.c. */
#undef C_ALLOCA
/* Define to empty if the keyword does not work. */
#undef const
www.eeworm.com/read/401546/11556265
java game.java
/*
*12.24日,完成了蛇撞到自己的检测.修改方法是在蛇的初始化的时候,用双循环来置FALSE;
* 在重写代码的时候,我借鉴了别人的思路:将整个游戏的界面定义为一个布尔型的二维数组.
* 用一个LinkedList来储存蛇.当蛇移动的时候,在蛇的头部增加一个节点,然后删除最后一个节点.
* 因为只是做练习,所以没做游戏界面,比如菜单栏,计分栏什么的.另外还有一个问题,就是当 ...
www.eeworm.com/read/401480/11557305
m makeellip.m
function [x, y]= makeellip( x0, y0, radiusx, radiusy, angleinterval)
% (x0, y0 ) = center of circle
% radiusx = radius in x direction (a)
% radiusy = radius in y direction (b)
% angleinterval = a
www.eeworm.com/read/347982/11619979
c 96.c
#include
#include
#include
/*定义控制命令*/
#define LEFT 0x4b00
#define RIGHT 0x4d00
#define DOWN 0x5000
#define UP 0x4800
#define ESC 0x011b
/*定义蛇的最大节数*/