If a line makes angles 90°, 135°, 45° with the x, y and z-axes respectively, find its direction cosines.