home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / midnightstrike1.swf / scripts / __Packages / com / neodelight / std / Vector.as < prev    next >
Encoding:
Text File  |  2007-04-02  |  321 b   |  19 lines

  1. class com.neodelight.std.Vector
  2. {
  3.    var x;
  4.    var y;
  5.    function Vector(x, y)
  6.    {
  7.       this.x = x;
  8.       this.y = y;
  9.    }
  10.    function copyOf()
  11.    {
  12.       return new com.neodelight.std.Vector(this.x,this.y);
  13.    }
  14.    function toString()
  15.    {
  16.       return "{x:" + this.x + ", y:" + this.y + "}";
  17.    }
  18. }
  19.