Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

use spread syntax for ortho camera calculation arguments #1

Open
kfarr opened this issue Feb 7, 2019 · 0 comments
Open

use spread syntax for ortho camera calculation arguments #1

kfarr opened this issue Feb 7, 2019 · 0 comments

Comments

@kfarr
Copy link
Owner

kfarr commented Feb 7, 2019

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax
Use Spread syntax instead of pulling out each item in array

this.orthoCamera = new THREE.OrthographicCamera(orthoCoords[0],orthoCoords[1],orthoCoords[2],orthoCoords[3],orthoCoords[4],orthoCoords[5]);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant