Geometrylessonsgithub 2021 〈SECURE — 2024〉

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)

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

def test_distance(): assert distance((0,0), (3,4)) == 5.0 color=BLUE) dot_b = Dot(RIGHT * 2

## Exercises 1. Identify collinear sets from an image. 2. Name rays and segments given endpoints. 3. Construct a line through two points using code. </code></pre> <hr> <h3><strong>4. Sample Animation: <code>lessons/01_points_lines/animations/point_construction.py</code></strong></h3> <pre><code class="language-python">from manim import * color=RED) label_a = MathTex("A").next_to(dot_a