Advertisement
Guest User

Pas bô

a guest
Jul 30th, 2014
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var point = function(X, Y) {
  2.     this.X = X;
  3.     this.Y = Y;
  4. }
  5. point.prototype = {
  6.     add: function(point_value) {
  7.         this.X += point_value.X;
  8.         this.Y += point_value.Y;
  9.     },
  10.     clone: function() {
  11.         return new point(this.X, this.Y);
  12.     }
  13. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement