Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Vector2() {
- this._x;
- this._y;
- }
- Vector2.prototype.assign = function(x_, y_)
- {
- this._x = x_;
- this._y = y_;
- }
- Vector2.prototype.compare = function(other_)
- {
- return (this._x == other_._x && this._y == other_._y);
- }
- Vector2.prototype.compare = function(x_, y_)
- {
- return (this._x == y_ && this._y == y_);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement