algorithms for finding second angle from pair or parameter rays of root point