Identifying right-angled triangles