Geometrylessonsgithub

def slope(p1, p2): """Slope of line through p1 and p2.""" dx = p2[0] - p1[0] if dx == 0: return float('inf') return (p2[1] - p1[1]) / dx

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 geometrylessonsgithub

line = Line(dot_a.get_center(), dot_b.get_center(), color=YELLOW) ray = Line(dot_a.get_center(), RIGHT * 4, color=GREEN, stroke_width=6) segment = Line(dot_a.get_center(), dot_b.get_center(), color=PURPLE) def slope(p1, p2): """Slope of line through p1 and p2

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

def circle_equation(center, radius): """Returns (h,k,r) for (x-h)^2 + (y-k)^2 = r^2.""" return (center[0], center[1], radius) </code></pre> <hr> <h3><strong>7. <code>tests/test_geometry_utils.py</code></strong></h3> <pre><code class="language-python">from tools.geometry_utils import distance, slope README

This complete content provides a ready-to-push GitHub repository that teaches geometry visually, interactively, and programmatically. </code></pre>

def midpoint(p1, p2): return ((p1[0]+p2[0])/2, (p1[1]+p2[1])/2)