为啥我将一个Vector3旋转之后再反向旋转同样角度,得到的数值却不一样?
float Angle = 90;//角度值 Vector3 V = new Vector3(100, 0, 0); Matrix M1 = Matrix.RotationZ((float)(Math.PI * Angle) / 180); Vector3 V1 = Vector3.TransformNormal(V, M1); Matrix M2 = Matrix.Invert(M1); Vector3 V2 = Vector3.TransformNormal(V1, M2); if (V == V2) { MessageBox.Show("True"); } else { MessageBox.Show("False"); }