Most of these methods are implemented in D3DX. You can start looking here, which is a list of all available math functions.

Of course, you can always take a book on 3D math and write these functions yourself.