Geometrylessonsgithub Work May 2026
## Installation See `installation.md`.
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) 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 ## Installation See `installation
def distance(p1, p2): """Euclidean distance between two points (x,y) tuples.""" return math.hypot(p1[0]-p2[0], p1[1]-p2[1]) color=BLUE) dot_b = Dot(RIGHT * 2