We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Layers
this
Currently Layers.set is
set( layer ) { this.mask = ( 1 << layer | 0 ) >>> 0; }
Would it be nice to return this so just like Vector3:
layerA.test( new Layers().set(2) );
For all the methods possible,
set( layer ) { this.mask = ( 1 << layer | 0 ) >>> 0; return this; }
N/A
No response
The text was updated successfully, but these errors were encountered:
The methods in three.js only return this if there is a high chance that the method invocations will be chained which is typical for math classes.
three.js
I'm not sure this is true for Layers. However, this is somewhat a subjective call so it would interesting to hear the opinion of others.
Sorry, something went wrong.
No branches or pull requests
Description
Currently Layers.set is
Would it be nice to return
this
so just like Vector3:Solution
For all the methods possible,
Alternatives
N/A
Additional context
No response
The text was updated successfully, but these errors were encountered: