The vectors OA,OB and OC are:
OA =(0,0,1) OB =(cosu,0,sinu) OC =(0,cosv,sinv).

Since these are unit vectors, the angles between the vectors, and hence the lengths of the sides of triangle ABC, are:
a = cos-1 OB.OC= cos-1 sinusinv b = cos-1 OA.OC= cos-1 sinv c = cos-1 OB.OA= cos-1 sinu.

Hence
cosa=cosbcosc.