Skip to content

Instantly share code, notes, and snippets.

@henvic
Forked from eduardolundgren/pos.js
Created September 21, 2013 01:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save henvic/6646115 to your computer and use it in GitHub Desktop.
Save henvic/6646115 to your computer and use it in GitHub Desktop.
_setPosition: function(val) {
var instance = this;
val.x = val.x || 0;
val.y = val.y || 0;
val.z = val.z || 0;
return val;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment