Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement