Last active
November 16, 2016 16:38
-
-
Save jacobgardner/2d95be124a8cc49d0bd99df415166531 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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