Rename backend/reflecting_ray_simulation.py to backend/reflecting_ray_tracing.py
Browse files
backend/{reflecting_ray_simulation.py → reflecting_ray_tracing.py}
RENAMED
@@ -47,7 +47,7 @@ def plot_reflection_on_circle(ax, angle, center, radius, ray_length=50, color='b
|
|
47 |
|
48 |
|
49 |
|
50 |
-
def
|
51 |
max_dim = max(abs(a), abs(b), r) * 3
|
52 |
fig, ax = plt.subplots()
|
53 |
ax.set_xlim(-max_dim, max_dim)
|
|
|
47 |
|
48 |
|
49 |
|
50 |
+
def reflecting_plotter(a = 20, b = 20, r = 15, ray_count = 15):
|
51 |
max_dim = max(abs(a), abs(b), r) * 3
|
52 |
fig, ax = plt.subplots()
|
53 |
ax.set_xlim(-max_dim, max_dim)
|