|
|
???相反方向的向量(,-1.0f,0.0f,0.0f)(1.0f,0.0f,0.0f)一起旋?
最後的xyz的座?硕贾徊畛松?-1)
????念?Σ??
D3DXMATRIX matShiftXLeft,matShiftXRight;
D3DXMATRIX matRotY;
D3DXMatrixIdentity(&matRotY);
D3DXMatrixRotationY(&matRotY,D3DX_PI/6);
D3DXMatrixIdentity(&matShiftXLeft);
D3DXMatrixTranslation(&matShiftXLeft,-1.0f,0.0f,0.0f);
D3DXMatrixMultiply(&matShiftXLeft,&matShiftXLeft,&matRotY);
D3DXMatrixIdentity(&matShiftXRight);
D3DXMatrixTranslation(&matShiftXRight,1.0f,0.0f,0.0f);
D3DXMatrixMultiply(&matShiftXRight,&matShiftXRight,&matRotY);
|
|