changed function parameters to D3DXVECTOR3