home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ring.yamanashi.ac.jp/pub/pc/freem/action/
/
action.zip
/
baku100.zip
/
baku100
/
Kernel
/
Util
/
Matrix.tonyu
< prev
next >
Wrap
Text File
|
2003-01-04
|
350b
|
25 lines
extends Array;
constructor Matrix(c) {
super();
cols=c;
}
function addRows(r) {
var x,y;
for (y=0 ; y<r ; y++) {
for (x=0 ; x<cols ; x++) add(null);
}
}
function rowCount() {
}
function get(x,y) {
return super.get(trunc(x)+trunc(y)*cols);
}
function set(x,y,t) {
super.set(trunc(x)+trunc(y)*cols,t);
}