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
For code review #259, identified by grunt find-duplicates:
grunt find-duplicates
This code is duplicated in 2 places in TheoryInterferenceOverlay. Lines 63-79 and 86-101.
const separation = scene.slitSeparationProperty.value; const arg = ( m + addition ) * scene.wavelength / separation; if ( arg <= 1 ) { const theta = sign * Math.asin( arg ); const x = LENGTH * Math.cos( theta ); const y = LENGTH * Math.sin( theta ); const line = new Line( barrierX, barrierY, barrierX + x, barrierY + y, { stroke: type === 'maxima' ? MAXIMUM_COLOR : MINIMUM_COLOR, lineWidth: LINE_WIDTH } ); this.addChild( line ); }
The text was updated successfully, but these errors were encountered:
Here's a visual diff:
The duplicated part is isolated to the if statement.
if
Sorry, something went wrong.
Factor out duplicated code, see #276
e664180
Factored out in preceding commit, please review.
👍 Closing.
pixelzoom
No branches or pull requests
For code review #259, identified by
grunt find-duplicates
:This code is duplicated in 2 places in TheoryInterferenceOverlay. Lines 63-79 and 86-101.
The text was updated successfully, but these errors were encountered: