![]() |
![]() |
![]() |
Matrix.Reflect Method |
Language: |
Builds a matrix that reflects the coordinate system about a plane.
Visual Basic .NET Public Sub Reflect( _
ByVal plane As Plane _
)C# public void Reflect(
Plane plane
);Managed C++ public: void Reflect(
Plane plane
);JScript .NET public function Reflect(
plane : Plane
);
plane Microsoft.DirectX.Plane. Source Plane structure.
The Reflect method normalizes the plane equation before it creates the reflected matrix.
The method 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
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center