diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-08-25 11:15:50 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-08-25 11:41:02 -0400 |
| commit | 48fc9b27a77126da649959c8f74ad8faffcd6e2c (patch) | |
| tree | d1ded29ad29f05dd9d34da6ed690a2acaff7ba55 /public/assets/javascripts/rectangles/models/wall.js | |
| parent | 0d2ff65db2cf26c993245dae752dfb52b8cb2819 (diff) | |
comment the regionlist algorithm
Diffstat (limited to 'public/assets/javascripts/rectangles/models/wall.js')
| -rw-r--r-- | public/assets/javascripts/rectangles/models/wall.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/public/assets/javascripts/rectangles/models/wall.js b/public/assets/javascripts/rectangles/models/wall.js index 13f5cd7..9d4650b 100644 --- a/public/assets/javascripts/rectangles/models/wall.js +++ b/public/assets/javascripts/rectangles/models/wall.js @@ -10,6 +10,11 @@ vec2 = require('./vec2') Rect = require('./rect') UidGenerator = require('../util/uid') + wall_rotation = {} + wall_rotation[FRONT] = PI + wall_rotation[BACK] = 0 + wall_rotation[LEFT] = HALF_PI + wall_rotation[RIGHT] = -HALF_PI } var Wall = function(opt){ |
