utils · Other tools

openpibo.utils.calculate_angle(p1, p2, p3)[source]

Calculates the angle of the three points p1-p2-p3. (centered at p2)

Parameters:

tuple – p1, p2, p3: each point as (x, y)

Returns:

Size of the angle p1-p2-p3 (in degrees)