I'm developing .Net at IJCAD 2018.The matrix calculation method seems to be not working, so I would like to ask you a question.Here's the reproduction code.
CommandMethod("test", CommandFlags.Session)
public static void test()
{
vard = new double [ ]
{
0.99359167957899042,-0.11302908595313337,0,316450.20558663277,
0.11302908595313337, 0.99359167957899042, 0, 37145.293791644872,
0,0,1,0,
0,0,0,1
};
varmat = new Matrix 3d(d);
Debug.Print(mat.CoordinateSystem3d.ToString());
// CoordinateSystem 3d remains pre-calculated
var mat2 = mat.Transpose();
Debug.Print(mat2.CoordinateSystem3d.ToString());
}
The Matrix3d.Transpose() results show that the Matrix3d.CoordinateSystem3d value remains the same as it was calculated. How can I avoid this problem?
.net ijcad
Thank you for your hard work.
This API seems to be a bug.
You can solve the problem by following the steps below yourself.
Pre-calculation matrix ------------------------------
Origin= (14, 24, 34),
Xaxis=(11, 21, 31),
Yaxis=(12,22,32),
Zaxis=(13,23,33)
Post-calculation matrix ----------------------------------
Origin= (41, 43, 43),
Xaxis= (11, 12, 13),
Yaxis=(21, 22, 23),
Zaxis=(31,32,33)
© 2024 OneMinuteCode. All rights reserved.