diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-11-11 15:34:48 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-11-11 16:51:45 -0500 |
| commit | 32c2630d6f384f3315b514ddf6d71dd4753dda66 (patch) | |
| tree | 52f6338c3e9b18511a73589cadc5e2b8546b0c3d /public/assets/javascripts/rectangles/models/vec3.js | |
| parent | 0abda4c9e25320285bc6a8960768d8c7427ad496 (diff) | |
resize text field without scaling
Diffstat (limited to 'public/assets/javascripts/rectangles/models/vec3.js')
| -rw-r--r-- | public/assets/javascripts/rectangles/models/vec3.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/public/assets/javascripts/rectangles/models/vec3.js b/public/assets/javascripts/rectangles/models/vec3.js index 4e00b0c..c44dfe6 100644 --- a/public/assets/javascripts/rectangles/models/vec3.js +++ b/public/assets/javascripts/rectangles/models/vec3.js @@ -15,6 +15,9 @@ vec3.prototype.sub = function(v){ this.c -= v.c return this } +vec3.prototype.clone = function(){ + return new vec3(this.a, this.b, this.c) +} // input: mat4 projection matrix vec3.prototype.apply_projection = function (m) { |
