Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
The D3DX utility library is deprecated. We recommend that you use DirectXMath instead.
Builds a matrix that reflects the coordinate system about a plane.
D3DXMATRIX* D3DXMatrixReflect(
_Inout_ D3DXMATRIX *pOut,
_In_ const D3DXPLANE *pPlane
);
pOut [in, out]
Type: D3DXMATRIX*
Pointer to the D3DXMATRIX structure that is the result of the operation.
pPlane [in]
Type: const D3DXPLANE*
Pointer to the source D3DXPLANE structure.
Type: D3DXMATRIX*
Pointer to a D3DXMATRIX structure that reflects the coordinate system about the source plane.
This function normalizes the plane equation before it creates the reflected matrix.
The return value for this function is the same value returned in the pOut parameter. In this way, the D3DXMatrixReflect function can be used as a parameter for another function.
This function uses the following formula to compute the returned matrix.
P = normalize(Plane);
-2 * P.a * P.a + 1 -2 * P.b * P.a -2 * P.c * P.a 0
-2 * P.a * P.b -2 * P.b * P.b + 1 -2 * P.c * P.b 0
-2 * P.a * P.c -2 * P.b * P.c -2 * P.c * P.c + 1 0
-2 * P.a * P.d -2 * P.b * P.d -2 * P.c * P.d 1
Requirement | Value |
---|---|
Header |
|
Library |
|
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today