c++ 使用Vector类,定义派生类matrix,实现矩阵基本运算答:D3DXMATRIX* WINAPI D3DXMatrixRotationYawPitchRoll ( D3DXMATRIX *pOut, FLOAT Yaw, FLOAT Pitch, FLOAT Roll ){ D3DXMATRIX matTemp; D3DXMatrixRotationY(pOut,Yaw); D3DXMatrixRotationX(&matTemp,Pitch); D3DXMatrixMultiply(pOut,pOut,&matTemp); D3DXMatrixRotationZ(&matTemp,Roll); D3DXMatrixMultiply(...