The coordinates of a point P are (3,12,4) with respect to origin O, then the direction cosines of OP are
3,12,4
14,13,12
313,−113,213
313,1213,413
Required direction cosines are
332+122+42,1232+122+42,432+122+42 i.e., 313,1213,413