diff options
Diffstat (limited to 'assets/javascripts/rectangles/models')
| -rw-r--r-- | assets/javascripts/rectangles/models/vec3.js | 5 | ||||
| -rw-r--r-- | assets/javascripts/rectangles/models/wall.js | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/assets/javascripts/rectangles/models/vec3.js b/assets/javascripts/rectangles/models/vec3.js new file mode 100644 index 0000000..4e9f3cb --- /dev/null +++ b/assets/javascripts/rectangles/models/vec3.js @@ -0,0 +1,5 @@ +function vec3(a,b,c){ + this.a = a + this.b = b + this.c = c +} diff --git a/assets/javascripts/rectangles/models/wall.js b/assets/javascripts/rectangles/models/wall.js index 854b238..4270551 100644 --- a/assets/javascripts/rectangles/models/wall.js +++ b/assets/javascripts/rectangles/models/wall.js @@ -61,7 +61,7 @@ window.Wall = (function(){ return true } - Wall.prototype.center_for = function(img, offset){ + Wall.prototype.center = function(offset){ offset = offset || 0 |
