def test_distance(): assert distance((0,0), (3,4)) == 5.0

## Key Terms - **Point**: Exact location, no size (e.g., A, B) - **Line**: Extends infinitely in both directions (e.g., ↔AB) - **Ray**: One endpoint, extends infinitely one way (β†’AB) - **Segment**: Two endpoints (β€”AB)

### **2. `requirements.txt`**

## Running Animations ```bash manim lessons/03_triangles/animations/pythagorean_visual.py PythagoreanTheorem -p </code></pre> <h2>Using Jupyter Notebooks</h2> <pre><code class="language-bash">jupyter lab lessons/01_points_lines/interactive.ipynb </code></pre> <h2>Writing Your Own Lessons</h2> <p>Add a new folder under <code>lessons/</code> with <code>lesson_notes.md</code>, <code>interactive.ipynb</code>, and <code>animations/</code>.</p> <pre><code> ---

geometrylessonsgithub Description: Interactive geometry lessons with visual proofs, animations, and computational exercises. Built with Manim and Jupyter. πŸ“ Repository Structure geometrylessonsgithub/ β”‚ β”œβ”€β”€ README.md β”œβ”€β”€ LICENSE β”œβ”€β”€ requirements.txt β”œβ”€β”€ setup.py β”œβ”€β”€ .gitignore β”‚ β”œβ”€β”€ lessons/ β”‚ β”œβ”€β”€ 01_points_lines/ β”‚ β”‚ β”œβ”€β”€ README.md β”‚ β”‚ β”œβ”€β”€ lesson_notes.md β”‚ β”‚ β”œβ”€β”€ interactive.ipynb β”‚ β”‚ └── animations/ β”‚ β”‚ β”œβ”€β”€ point_construction.py β”‚ β”‚ β”œβ”€β”€ line_ray_segment.py β”‚ β”‚ └── media/ β”‚ β”‚ β”‚ β”œβ”€β”€ 02_angles/ β”‚ β”‚ β”œβ”€β”€ README.md β”‚ β”‚ β”œβ”€β”€ lesson_notes.md β”‚ β”‚ β”œβ”€β”€ interactive.ipynb β”‚ β”‚ └── animations/ β”‚ β”‚ β”œβ”€β”€ acute_obtuse_right.py β”‚ β”‚ β”œβ”€β”€ complementary_supplementary.py β”‚ β”‚ └── angle_bisector.py β”‚ β”‚ β”‚ β”œβ”€β”€ 03_triangles/ β”‚ β”‚ β”œβ”€β”€ README.md β”‚ β”‚ β”œβ”€β”€ lesson_notes.md β”‚ β”‚ β”œβ”€β”€ interactive.ipynb β”‚ β”‚ └── animations/ β”‚ β”‚ β”œβ”€β”€ triangle_types.py β”‚ β”‚ β”œβ”€β”€ pythagorean_visual.py β”‚ β”‚ └── triangle_inequality.py β”‚ β”‚ β”‚ β”œβ”€β”€ 04_circles/ β”‚ β”‚ β”œβ”€β”€ README.md β”‚ β”‚ β”œβ”€β”€ lesson_notes.md β”‚ β”‚ β”œβ”€β”€ interactive.ipynb β”‚ β”‚ └── animations/ β”‚ β”‚ β”œβ”€β”€ circumference_diameter.py β”‚ β”‚ β”œβ”€β”€ inscribed_angles.py β”‚ β”‚ └── tangent_radius.py β”‚ β”‚ β”‚ └── 05_coordinate_geometry/ β”‚ β”œβ”€β”€ README.md β”‚ β”œβ”€β”€ lesson_notes.md β”‚ β”œβ”€β”€ interactive.ipynb β”‚ └── animations/ β”‚ β”œβ”€β”€ distance_midpoint.py β”‚ β”œβ”€β”€ slope_intercept.py β”‚ └── circle_equation.py β”‚ β”œβ”€β”€ exercises/ β”‚ β”œβ”€β”€ 01_points_lines_exercises.ipynb β”‚ β”œβ”€β”€ 02_angles_exercises.ipynb β”‚ β”œβ”€β”€ 03_triangles_exercises.ipynb β”‚ β”œβ”€β”€ 04_circles_exercises.ipynb β”‚ β”œβ”€β”€ 05_coordinate_exercises.ipynb β”‚ └── solutions/ β”‚ └── (same filenames with _solutions) β”‚ β”œβ”€β”€ tools/ β”‚ β”œβ”€β”€ geometry_utils.py β”‚ β”œβ”€β”€ plot_helpers.py β”‚ └── interactive_widgets.py β”‚ β”œβ”€β”€ visual_proofs/ β”‚ β”œβ”€β”€ pythagoras_animated.py β”‚ β”œβ”€β”€ circle_area_derivation.py β”‚ β”œβ”€β”€ triangle_sum_180.py β”‚ └── pi_visual.py β”‚ β”œβ”€β”€ tests/ β”‚ β”œβ”€β”€ test_geometry_utils.py β”‚ └── test_animations.py β”‚ β”œβ”€β”€ docs/ β”‚ β”œβ”€β”€ index.md β”‚ β”œβ”€β”€ installation.md β”‚ β”œβ”€β”€ usage.md β”‚ └── contributing.md β”‚ └── gallery/ β”œβ”€β”€ images/ └── videos/ πŸ“„ Core File Contents 1. README.md (top-level) # Geometry Lessons with Code

class PointConstruction(Scene): def construct(self): dot_a = Dot(LEFT * 2, color=BLUE) dot_b = Dot(RIGHT * 2, color=RED) label_a = MathTex("A").next_to(dot_a, DOWN) label_b = MathTex("B").next_to(dot_b, DOWN)

### **3. Sample Lesson: `lessons/01_points_lines/lesson_notes.md`**

Interactive geometry lessons combining visual animations (Manim) and computational exploration (Jupyter). git clone https://github.com/yourusername/geometrylessonsgithub.git cd geometrylessonsgithub pip install -r requirements.txt </code></pre> <p>Then open any <code>interactive.ipynb</code> in Jupyter Lab.</p> <h2>πŸ“š Lessons</h2> <ol> <li><strong>Points, Lines, Rays, Segments</strong> – Foundations</li> <li><strong>Angles</strong> – Types, bisectors, relationships</li> <li><strong>Triangles</strong> – Types, Pythagorean theorem, inequalities</li> <li><strong>Circles</strong> – Radius, diameter, inscribed angles, tangents</li> <li><strong>Coordinate Geometry</strong> – Distance, slope, line/circle equations</li> </ol> <h2>🎬 Example Visual</h2> <p>Run a visual proof:</p> <pre><code class="language-bash">manim visual_proofs/pythagoras_animated.py PythagoreanTheorem -pqh </code></pre> <h2>🧠 Exercises</h2> <p>Each lesson includes an interactive notebook with:</p> <ul> <li>Auto-graded quizzes (using <code>ipywidgets</code>)</li> <li>Dynamic geometry plots (Matplotlib/Plotly)</li> <li>Coding challenges</li> </ul> <h2>🀝 Contributing</h2> <p>See <code>docs/contributing.md</code>.</p> <h2>πŸ“– License</h2> <p>MIT</p> <pre><code> ---