C++ equivalent of "Convert Mouse Location To World Space"

Six years later and this is still useful. Thanks