Skip to content

Instantly share code, notes, and snippets.

@jacobgardner
Last active November 16, 2016 16:38
Show Gist options
  • Save jacobgardner/2d95be124a8cc49d0bd99df415166531 to your computer and use it in GitHub Desktop.
Save jacobgardner/2d95be124a8cc49d0bd99df415166531 to your computer and use it in GitHub Desktop.
set position(vec) {
const diff = vec.clone().subtract(this._lowerLeft);
this._lowerLeft = vec;
this._upperRight.add(diff);
}
get position() {
return this._lowerLeft;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment