We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d7efd2 commit 796cfe1Copy full SHA for 796cfe1
1 file changed
src/main/java/com/thealgorithms/physics/SnellLaw.java
@@ -25,9 +25,7 @@ public static double refractedAngle(double n1, double n2, double theta1) {
25
double sinTheta2 = ratio * Math.sin(theta1);
26
27
if (Math.abs(sinTheta2) > 1.0) {
28
- throw new IllegalArgumentException(
29
- "Total internal reflection: no refraction possible."
30
- );
+ throw new IllegalArgumentException("Total internal reflection: no refraction possible.");
31
}
32
33
return Math.asin(sinTheta2);
0 commit comments