Reflection Path (Corner Pocket)

Reflection Path (Corner Pocket)
Loading the math board and drawing, please wait…
2017-03-22 05:24
This GeoGebra applet demonstrates the reflection path of a billiard ball within a rectangular boundary. By calculating intersections of rays with polygon edges, it dynamically simulates the trajectory through multiple reflections until it reaches a corner pocket. Combining geometric construction and conditional logic, it visually illustrates the law of reflection in closed polygons, ideal for exploring billiard rebound patterns and dynamic geometric trajectories. Users can adjust the starting position and launch angle of the ball, observing in real time how the trajectory changes as the ball bounces off the four sides of the rectangle. The applet highlights each reflection point on the boundary and traces the complete path from the starting point to the corner pocket. The reflection behavior follows the familiar principle that the angle of incidence equals the angle of reflection at each bounce, offering students an intuitive, interactive way to verify this geometric rule without tedious manual drawing. The model is particularly useful for investigating whether a given starting point and direction will always eventually lead the ball into a corner pocket, and for examining how the number of bounces varies with different initial conditions. Teachers can use this applet in geometry or trigonometry lessons to connect algebraic vector calculations with visual geometric reasoning, helping learners build a deeper understanding of reflection symmetry, coordinate geometry, and the interplay between dynamic construction and logical conditions in interactive mathematics environments.

GeoGebra Commands & Parameters

  1. PolyLine((x1, y1), (x1, y2), (x2, y2), (x2, y1), (x1, y1)) → box
  2. Ray(A, B) → ray
  3. Segment((x1, y1), (x2, y1)) → s1
  4. Segment((x2, y1), (x2, y2)) → s2
  5. Segment((x1, y2), (x2, y2)) → s3
  6. Segment((x1, y1), (x1, y2)) → s4
  7. Intersect(ray, s1) → P1
  8. Intersect(ray, s2) → P2
  9. Intersect(ray, s3) → P3
  10. Intersect(ray, s4) → P4
  11. RemoveUndefined({P1, P2, P3, P4}) → inters
  12. Remove(Remove[inters, {A}], {A}) → removeStartPoint
  13. Length(removeStartPoint) → n
  14. If(n ≟ 1, If[x(Q) ≟ x1 ∨ x(Q) ≟ x2, Mirror[A, x = x(Q)], Mirror[A, y = y(Q)]], If[Q ≟ (x1, y1), (x1 - 1, y1 - 1), Q ≟ (x2, y1), (x2 + 1, y1 - 1), Q ≟ (x2, y2), (x2 + 1, y2 + 1), Q ≟ (x1, y2), (x1 - 1, y2 + 1)]) → C
  15. Polygon({(x1, y1), (x1, y2), (x2, y2), (x2, y1)}) → poly
  16. Min(x(D), x(E)) → a1
  17. Max(x(D), x(E)) → a2
  18. Max(y(D), y(E)) → b2
  19. Min(y(D), y(E)) → b1
  20. Box(a1, a2, b1, b2) → box2
  21. PointIn(BoxFilled[a1, a2, b1, b2]) → F
  22. ReflectionPoint(x1, x2, y1, y2, Q, (2 * Q) - C) → H
  23. BoxFilled(a1, a2, b1, b2) → poly2
  24. PointIn(poly2) → G
  25. ReflectPoint(a1, a2, b1, b2, F, G) → A1
  26. NextReflect(a1, a2, b1, b2, F, G) → A2
  27. NextReflect(a1, a2, b1, b2, A1, A2) → A3
  28. NextReflect(a1, a2, b1, b2, A2, A3) → A4
  29. NextReflect(a1, a2, b1, b2, A3, A4) → A5
  30. NextReflect(a1, a2, b1, b2, A4, A5) → A6
  31. NextReflect(a1, a2, b1, b2, A5, A6) → A7
  32. NextReflect(a1, a2, b1, b2, A6, A7) → A8
  33. NextReflect(a1, a2, b1, b2, A7, A8) → A9
  34. NextReflect(a1, a2, b1, b2, A8, A9) → A10
  35. NextReflect(a1, a2, b1, b2, A9, A10) → A11
  36. NextReflect(a1, a2, b1, b2, A10, A11) → A12
  37. Vector(A1, A2) → B2
  38. Vector(A2, A3) → B3
  39. Vector(A3, A4) → B4
  40. Vector(A4, A5) → B5
  41. Vector(A5, A6) → B6
  42. Vector(A6, A7) → B7
  43. Vector(A7, A8) → B8
  44. Vector(A8, A9) → B9
  45. Vector(A9, A10) → B10
  46. Vector(A10, A11) → B11
  47. Vector(A11, A12) → B12
  48. Vector(F, G) → u
  49. If(n ≟ 1, If[x(Q) ≟ x1 ∨ x(Q) ≟ x2, Mirror[A, x = x(Q)], Mirror[A, y = y(Q)]], NaN) → C'
  50. ReflectionPoint(x1, x2, y1, y2, Q, (2 * Q) - C') → H'
  51. Segment(C', Q) → g
  52. Segment(A, C') → h
  53. PolyLine(A, Q, H') → f
  54. Vector(F, A1) → B1

AI Drawing Prompt Reference

Draw a rectangular boundary with a ball reflecting off its sides. The ball starts at a given point and bounces multiple times until it reaches a corner pocket. Mark each reflection point where the path intersects the boundary. The rectangle is clearly visible, and the trajectory shows the law of reflection. The overall graphic illustrates dynamic geometric paths.
The prompt above was compiled from the original drawing commands and is for reference only.