Although radial-velocity of the star only gives a planet's minimum mass, if the planet's spectral lines can be distinguished from the star's spectral lines then the radial-velocity of the planet itself can be found and this gives the inclination of the planet's orbit and therefore the planet's actual mass can be determined. The first non-transiting planet to have its mass found this way was Tau Boötis b in 2012 when carbon monoxide was detected in the infra-red part of the spectrum.