Rectangular Billiards
Loading the math board and drawing, please wait…
In collections
Modelos
This example demonstrates the trajectory and reflection of a ball on a rectangular billiard table, involving concepts like angles, reflection laws, vectors, polygon construction, and coordinate geometry. It uses commands such as Segment, Point, Vector, Line, Sequence, RemoveUndefined, Remove, If, Mirror, PolyLine, First to construct the table, ball, and paths. Suitable for high school mathematics education to understand vector applications, reflections, and coordinate geometry.
GeoGebra Commands & Parameters
Segment(A, B) → c1Segment(B, C) → c2Segment(C, D) → c3Segment(D, A) → c4Point(banda) → PVector(V) → vLine(A1, Vector[B1]) → C1Sequence(Intersect[C1, banda(k)], k, 1, 4) → D1RemoveUndefined(D1) → E1Remove(E1, {A1}) → F1If(G1 ∈ c1, c1, G1 ∈ c2, c2, G1 ∈ c3, c3, c4) → H1Mirror(G1 + B1, H1) → I1Line(A2, Vector[B2]) → C2Sequence(Intersect[C2, banda(k)], k, 1, 4) → D2RemoveUndefined(D2) → E2Remove(E2, {A2}) → F2If(G2 ∈ c1, c1, G2 ∈ c2, c2, G2 ∈ c3, c3, c4) → H2Mirror(G2 + B2, H2) → I2Line(A3, Vector[B3]) → C3Sequence(Intersect[C3, banda(k)], k, 1, 4) → D3RemoveUndefined(D3) → E3Remove(E3, {A3}) → F3If(G3 ∈ c1, c1, G3 ∈ c2, c2, G3 ∈ c3, c3, c4) → H3Mirror(G3 + B3, H3) → I3Line(A4, Vector[B4]) → C4Sequence(Intersect[C4, banda(k)], k, 1, 4) → D4RemoveUndefined(D4) → E4Remove(E4, {A4}) → F4If(G4 ∈ c1, c1, G4 ∈ c2, c2, G4 ∈ c3, c3, c4) → H4Mirror(G4 + B4, H4) → I4Line(A5, Vector[B5]) → C5Sequence(Intersect[C5, banda(k)], k, 1, 4) → D5RemoveUndefined(D5) → E5Remove(E5, {A5}) → F5If(G5 ∈ c1, c1, G5 ∈ c2, c2, G5 ∈ c3, c3, c4) → H5Mirror(G5 + B5, H5) → I5Line(A6, Vector[B6]) → C6Sequence(Intersect[C6, banda(k)], k, 1, 4) → D6RemoveUndefined(D6) → E6Remove(E6, {A6}) → F6If(G6 ∈ c1, c1, G6 ∈ c2, c2, G6 ∈ c3, c3, c4) → H6Mirror(G6 + B6, H6) → I6Line(A7, Vector[B7]) → C7Sequence(Intersect[C7, banda(k)], k, 1, 4) → D7RemoveUndefined(D7) → E7Remove(E7, {A7}) → F7If(G7 ∈ c1, c1, G7 ∈ c2, c2, G7 ∈ c3, c3, c4) → H7Mirror(G7 + B7, H7) → I7Line(A8, Vector[B8]) → C8Sequence(Intersect[C8, banda(k)], k, 1, 4) → D8RemoveUndefined(D8) → E8Remove(E8, {A8}) → F8If(G8 ∈ c1, c1, G8 ∈ c2, c2, G8 ∈ c3, c3, c4) → H8Mirror(G8 + B8, H8) → I8Line(A9, Vector[B9]) → C9Sequence(Intersect[C9, banda(k)], k, 1, 4) → D9RemoveUndefined(D9) → E9Remove(E9, {A9}) → F9If(G9 ∈ c1, c1, G9 ∈ c2, c2, G9 ∈ c3, c3, c4) → H9Mirror(G9 + B9, H9) → I9Line(A10, Vector[B10]) → C10Sequence(Intersect[C10, banda(k)], k, 1, 4) → D10RemoveUndefined(D10) → E10Remove(E10, {A10}) → F10If(G10 ∈ c1, c1, G10 ∈ c2, c2, G10 ∈ c3, c3, c4) → H10Mirror(G10 + B10, H10) → I10Line(A11, Vector[B11]) → C11Sequence(Intersect[C11, banda(k)], k, 1, 4) → D11RemoveUndefined(D11) → E11Remove(E11, {A11}) → F11If(G11 ∈ c1, c1, G11 ∈ c2, c2, G11 ∈ c3, c3, c4) → H11Mirror(G11 + B11, H11) → I11Line(A12, Vector[B12]) → C12Sequence(Intersect[C12, banda(k)], k, 1, 4) → D12RemoveUndefined(D12) → E12Remove(E12, {A12}) → F12If(G12 ∈ c1, c1, G12 ∈ c2, c2, G12 ∈ c3, c3, c4) → H12Mirror(G12 + B12, H12) → I12Line(A13, Vector[B13]) → C13Sequence(Intersect[C13, banda(k)], k, 1, 4) → D13RemoveUndefined(D13) → E13Remove(E13, {A13}) → F13If(G13 ∈ c1, c1, G13 ∈ c2, c2, G13 ∈ c3, c3, c4) → H13Mirror(G13 + B13, H13) → I13Line(A14, Vector[B14]) → C14Sequence(Intersect[C14, banda(k)], k, 1, 4) → D14RemoveUndefined(D14) → E14Remove(E14, {A14}) → F14If(G14 ∈ c1, c1, G14 ∈ c2, c2, G14 ∈ c3, c3, c4) → H14Mirror(G14 + B14, H14) → I14Line(A15, Vector[B15]) → C15Sequence(Intersect[C15, banda(k)], k, 1, 4) → D15RemoveUndefined(D15) → E15Remove(E15, {A15}) → F15If(G15 ∈ c1, c1, G15 ∈ c2, c2, G15 ∈ c3, c3, c4) → H15Mirror(G15 + B15, H15) → I15Line(A16, Vector[B16]) → C16Sequence(Intersect[C16, banda(k)], k, 1, 4) → D16RemoveUndefined(D16) → E16Remove(E16, {A16}) → F16If(G16 ∈ c1, c1, G16 ∈ c2, c2, G16 ∈ c3, c3, c4) → H16Mirror(G16 + B16, H16) → I16Line(A17, Vector[B17]) → C17Sequence(Intersect[C17, banda(k)], k, 1, 4) → D17RemoveUndefined(D17) → E17Remove(E17, {A17}) → F17If(G17 ∈ c1, c1, G17 ∈ c2, c2, G17 ∈ c3, c3, c4) → H17Mirror(G17 + B17, H17) → I17Line(A18, Vector[B18]) → C18Sequence(Intersect[C18, banda(k)], k, 1, 4) → D18RemoveUndefined(D18) → E18Remove(E18, {A18}) → F18If(G18 ∈ c1, c1, G18 ∈ c2, c2, G18 ∈ c3, c3, c4) → H18Mirror(G18 + B18, H18) → I18Line(A19, Vector[B19]) → C19Sequence(Intersect[C19, banda(k)], k, 1, 4) → D19RemoveUndefined(D19) → E19Remove(E19, {A19}) → F19If(G19 ∈ c1, c1, G19 ∈ c2, c2, G19 ∈ c3, c3, c4) → H19Mirror(G19 + B19, H19) → I19Line(A20, Vector[B20]) → C20Sequence(Intersect[C20, banda(k)], k, 1, 4) → D20RemoveUndefined(D20) → E20Remove(E20, {A20}) → F20If(G20 ∈ c1, c1, G20 ∈ c2, c2, G20 ∈ c3, c3, c4) → H20Mirror(G20 + B20, H20) → I20Line(A21, Vector[B21]) → C21Sequence(Intersect[C21, banda(k)], k, 1, 4) → D21RemoveUndefined(D21) → E21Remove(E21, {A21}) → F21If(G21 ∈ c1, c1, G21 ∈ c2, c2, G21 ∈ c3, c3, c4) → H21Mirror(G21 + B21, H21) → I21Line(A22, Vector[B22]) → C22Sequence(Intersect[C22, banda(k)], k, 1, 4) → D22RemoveUndefined(D22) → E22Remove(E22, {A22}) → F22If(G22 ∈ c1, c1, G22 ∈ c2, c2, G22 ∈ c3, c3, c4) → H22Mirror(G22 + B22, H22) → I22Line(A23, Vector[B23]) → C23Sequence(Intersect[C23, banda(k)], k, 1, 4) → D23RemoveUndefined(D23) → E23Remove(E23, {A23}) → F23If(G23 ∈ c1, c1, G23 ∈ c2, c2, G23 ∈ c3, c3, c4) → H23Mirror(G23 + B23, H23) → I23Line(A24, Vector[B24]) → C24Sequence(Intersect[C24, banda(k)], k, 1, 4) → D24RemoveUndefined(D24) → E24Remove(E24, {A24}) → F24If(G24 ∈ c1, c1, G24 ∈ c2, c2, G24 ∈ c3, c3, c4) → H24Mirror(G24 + B24, H24) → I24Line(A25, Vector[B25]) → C25Sequence(Intersect[C25, banda(k)], k, 1, 4) → D25RemoveUndefined(D25) → E25Remove(E25, {A25}) → F25If(G25 ∈ c1, c1, G25 ∈ c2, c2, G25 ∈ c3, c3, c4) → H25Mirror(G25 + B25, H25) → I25Line(A26, Vector[B26]) → C26Sequence(Intersect[C26, banda(k)], k, 1, 4) → D26RemoveUndefined(D26) → E26Remove(E26, {A26}) → F26If(G26 ∈ c1, c1, G26 ∈ c2, c2, G26 ∈ c3, c3, c4) → H26Mirror(G26 + B26, H26) → I26Line(A27, Vector[B27]) → C27Sequence(Intersect[C27, banda(k)], k, 1, 4) → D27RemoveUndefined(D27) → E27Remove(E27, {A27}) → F27If(G27 ∈ c1, c1, G27 ∈ c2, c2, G27 ∈ c3, c3, c4) → H27Mirror(G27 + B27, H27) → I27Line(A28, Vector[B28]) → C28Sequence(Intersect[C28, banda(k)], k, 1, 4) → D28RemoveUndefined(D28) → E28Remove(E28, {A28}) → F28If(G28 ∈ c1, c1, G28 ∈ c2, c2, G28 ∈ c3, c3, c4) → H28Mirror(G28 + B28, H28) → I28Line(A29, Vector[B29]) → C29Sequence(Intersect[C29, banda(k)], k, 1, 4) → D29RemoveUndefined(D29) → E29Remove(E29, {A29}) → F29If(G29 ∈ c1, c1, G29 ∈ c2, c2, G29 ∈ c3, c3, c4) → H29Mirror(G29 + B29, H29) → I29Line(A30, Vector[B30]) → C30Sequence(Intersect[C30, banda(k)], k, 1, 4) → D30RemoveUndefined(D30) → E30Remove(E30, {A30}) → F30If(G30 ∈ c1, c1, G30 ∈ c2, c2, G30 ∈ c3, c3, c4) → H30Mirror(G30 + B30, H30) → I30Line(A31, Vector[B31]) → C31Sequence(Intersect[C31, banda(k)], k, 1, 4) → D31RemoveUndefined(D31) → E31Remove(E31, {A31}) → F31If(G31 ∈ c1, c1, G31 ∈ c2, c2, G31 ∈ c3, c3, c4) → H31Mirror(G31 + B31, H31) → I31Line(A32, Vector[B32]) → C32Sequence(Intersect[C32, banda(k)], k, 1, 4) → D32RemoveUndefined(D32) → E32Remove(E32, {A32}) → F32If(G32 ∈ c1, c1, G32 ∈ c2, c2, G32 ∈ c3, c3, c4) → H32Mirror(G32 + B32, H32) → I32Line(A33, Vector[B33]) → C33Sequence(Intersect[C33, banda(k)], k, 1, 4) → D33RemoveUndefined(D33) → E33Remove(E33, {A33}) → F33If(G33 ∈ c1, c1, G33 ∈ c2, c2, G33 ∈ c3, c3, c4) → H33Mirror(G33 + B33, H33) → I33Line(A34, Vector[B34]) → C34Sequence(Intersect[C34, banda(k)], k, 1, 4) → D34RemoveUndefined(D34) → E34Remove(E34, {A34}) → F34If(G34 ∈ c1, c1, G34 ∈ c2, c2, G34 ∈ c3, c3, c4) → H34Mirror(G34 + B34, H34) → I34Line(A35, Vector[B35]) → C35Sequence(Intersect[C35, banda(k)], k, 1, 4) → D35RemoveUndefined(D35) → E35Remove(E35, {A35}) → F35If(G35 ∈ c1, c1, G35 ∈ c2, c2, G35 ∈ c3, c3, c4) → H35Mirror(G35 + B35, H35) → I35Line(A36, Vector[B36]) → C36Sequence(Intersect[C36, banda(k)], k, 1, 4) → D36RemoveUndefined(D36) → E36Remove(E36, {A36}) → F36If(G36 ∈ c1, c1, G36 ∈ c2, c2, G36 ∈ c3, c3, c4) → H36Mirror(G36 + B36, H36) → I36Line(A37, Vector[B37]) → C37Sequence(Intersect[C37, banda(k)], k, 1, 4) → D37RemoveUndefined(D37) → E37Remove(E37, {A37}) → F37If(G37 ∈ c1, c1, G37 ∈ c2, c2, G37 ∈ c3, c3, c4) → H37Mirror(G37 + B37, H37) → I37Line(A38, Vector[B38]) → C38Sequence(Intersect[C38, banda(k)], k, 1, 4) → D38RemoveUndefined(D38) → E38Remove(E38, {A38}) → F38If(G38 ∈ c1, c1, G38 ∈ c2, c2, G38 ∈ c3, c3, c4) → H38Mirror(G38 + B38, H38) → I38Line(A39, Vector[B39]) → C39Sequence(Intersect[C39, banda(k)], k, 1, 4) → D39RemoveUndefined(D39) → E39Remove(E39, {A39}) → F39If(G39 ∈ c1, c1, G39 ∈ c2, c2, G39 ∈ c3, c3, c4) → H39Mirror(G39 + B39, H39) → I39Line(A40, Vector[B40]) → C40Sequence(Intersect[C40, banda(k)], k, 1, 4) → D40RemoveUndefined(D40) → E40Remove(E40, {A40}) → F40If(G40 ∈ c1, c1, G40 ∈ c2, c2, G40 ∈ c3, c3, c4) → H40Mirror(G40 + B40, H40) → I40PolyLine(A1:A40) → trayectoriaFirst(A2:A40, (m + n) / GCD[m, n] - 2) → rebotes
AI Drawing Prompt Reference
Draw a rectangular billiard table with a ball on it. The ball moves in straight lines and reflects off the walls according to the law of reflection, where the angle of incidence equals the angle of reflection. The trajectory consists of straight line segments, illustrating concepts of angles, vectors, and coordinate geometry. The construction order: first draw the rectangular billiard table, then place the ball, then simulate the ball's multiple reflection paths to show the trajectory and reflection relationships.
The prompt above was compiled from the original drawing commands and is for reference only.