daily pastebin goal
26%
SHARE
TWEET

Untitled

a guest Feb 21st, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         function Vector2() {
  2.             this._x;
  3.             this._y;
  4.         }
  5.  
  6.         Vector2.prototype.assign = function(x_, y_)
  7.         {
  8.             this._x = x_;
  9.             this._y = y_;
  10.         }
  11.  
  12.         Vector2.prototype.compare = function(other_)
  13.         {
  14.             return (this._x == other_._x && this._y == other_._y);
  15.         }
  16.  
  17.         Vector2.prototype.compare = function(x_, y_)
  18.         {
  19.             return (this._x == y_ && this._y == y_);
  20.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top