
29.03.2004, 19:28
|
|
блогер
Регистрация: Mar 2003
Адрес: Моск. обл.
Сообщений: 5,269
|
function line(x,y){ this.angle=Math.atan(x/y);}
lines=new Array();
lines.push(new line(1, 2));
trace(lines[0].angle);//0.463647609000806
lines[1] = new line(2, 1);
trace(lines[1].angle);//1.10714871779409
|