changed double to D3DXVECTOR3