# Tutorial Q-7: The angle from three points

Write the angle-from-three-points function, check it on the book's worked example, and apply it to every frame of a pose table to draw a runner's knee flexion stride by stride.

Address: https://apopt.com/data/tutorials/q07-three-point-angle/  
License: CC BY 4.0  
Prepared: 2026-12-03

## Description

Files for the tutorial *The angle from three points* (https://apopt.com/course/tutorials/q07-three-point-angle/). `raw/` holds the inputs as the device or app wrote them; `clean/` holds the cleaned copies the tutorial writes; `expected/` holds what a correct run prints and saves, so you can check your own run.

## Files

| file | size | rows | description |
|---|---|---|---|
| [expected/printed-output.txt](https://apopt.com/data/tutorials/q07-three-point-angle/expected/printed-output.txt) | 423 B |  | Everything the tutorial prints, cell by cell |
| [raw/form2_keypoints_yolo26s.csv](https://apopt.com/data/tutorials/q07-three-point-angle/raw/form2_keypoints_yolo26s.csv) | 114.5 KB | 362 rows | a pose model's keypoint table for a side-view running clip, one row per frame (362 rows), x and y in pixels and a confidence for 17 keypoints |

Large files are stated with their size. A `preview.md` in this folder shows the first rows of each table.

## Provenance

- Source: Data-Driven Athletics tutorials (IRSRI, 2027)
- Removed: nothing; inputs are synthetic, published course data, or the instructor's own
- Permission basis: Published with the course under CC BY 4.0
- Prepared with: dda/tutorials/build.py

## Used in

- Book: [Chapter 3: Mechanics of Movement](https://apopt.com/book/ch03-mechanics/)
- Course: [Week 3 lesson](https://apopt.com/course/week/3/)
- Homework H06: [https://apopt.com/course/assess/h06/](https://apopt.com/course/assess/h06/)

## How to cite

Tutorial Q-7: The angle from three points. IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/q07-three-point-angle/

## Load it

```python
import pandas as pd
df = pd.read_csv("https://apopt.com/data/tutorials/q07-three-point-angle/raw/form2_keypoints_yolo26s.csv")
```
