代码搜索:Direction
找到约 10,000 项符合「Direction」的源代码
代码结果 10,000
www.eeworm.com/read/364264/9916724
m antnewpos.m
function [newx,newy]=antnewpos(x,y,direction,trail);
%ANTNEWPOS Calculates the new location of the GPLAB artificial ant.
% ANTNEWPOS returns the new location (NEWX and NEWY) of the artificial a
www.eeworm.com/read/364264/9916834
m antif.m
function antif(actiontruefalse)
%ANTIF Executes one or other action of the GPLAB artificial ant.
% ANTIF executes ACTIONTRUEFALSE{1} (action if true) if there is food
% ahead in the artifici
www.eeworm.com/read/364264/9916836
m antsim.m
function antsim(vars,simspeed)
%ANTSIM Simulates the behaviour of the best GPLAB artificial ant.
% ANTSIM(VARS) evaluates the best ant stored in the given variable.
% Also simulates the ant'
www.eeworm.com/read/364264/9916869
m antmove.m
function antmove
%ANTMOVE Moves the GPLAB artificial ant forward one step.
% ANTMOVE returns the number of the time step used by the ant after
% moving. Other variables are returned as globa
www.eeworm.com/read/364264/9916874
m antfitness_lib.m
function ind=antfitness_lib(ind,params,data,terminals,varsvals)
%ANTFITNESS Measures the fitness of a GPLAB artificial ant, lower is better.
% ANTFITNESS(INDIVIDUAL,PARAMS,DATA,TERMINALS,VARSVA
www.eeworm.com/read/364264/9916930
m antfitness.m
function ind=antfitness(ind,params,data,terminals,varsvals)
%ANTFITNESS Measures the fitness of a GPLAB artificial ant.
% ANTFITNESS(INDIVIDUAL,PARAMS,DATA,TERMINALS,VARSVALS) returns
% the
www.eeworm.com/read/364262/9917019
java tank.java
package com.bjsxt.tank;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
public class Tank {
public static final int XSPEED = 5;
public static final int YSPEED = 5;
pub
www.eeworm.com/read/364241/9917355
java cell.java
import javax.swing.Icon;
import javax.swing.JButton;
public class Cell extends JButton {
Cell(Icon icon){//实际为ICON
super(icon);
this.setSize(100,100);
}
public void move(String dire
www.eeworm.com/read/168133/9936888
c radio.c
#define uchar unsigned char
#define uint unsigned int
#define ulong unsigned long
#include
#include
#include "mylib.h"
#define fm 0
#define am 1
#define inc 1
#define de
www.eeworm.com/read/168118/9938697
m flipx.m
function flipx
% FLIPX: script to flip the direction of the x axis
%
% just type "flipx" at the matlab prompt
state=get(gca,'xdir');
if(strcmp(state,'normal'))
set(gca,'xdir','reverse')
else