如何反转4x4矩阵的y坐标?

Bra*_*don 2 c# matrix slimdx

我在SlimDX工作,我从一个x,y,z坐标开始.我正在转换右手坐标系中的一个点,其中Z在垂直正位置到右手y垂直正(DirectX).为了使旋转变得容易,我将我的观点转换为4x4矩阵.现在我需要反转y坐标.如何以矩阵形式反转y坐标?

Matrix finalMatrix = originalMatrix * 
Matrix.RotationX(MathHelper.ToRadians(85f)) * 
Matrix.RotationY(MathHelper.ToRadians(-.075f)) *
Matrix.RotationZ(MathHelper.ToRadians(55f)) ;
Run Code Online (Sandbox Code Playgroud)

小智 5

要反转Y,您需要通过XZ平面反射点.

finalMatrix = finalMatrix * Matrix.Reflection(new Plane(0,-1,0, 0));
Run Code Online (Sandbox Code Playgroud)