public SampleData(Matrix matrix, string description, string matrixText = null) { Matrix = matrix; Description = description; if (string.IsNullOrEmpty(matrixText)) { MatrixText = Ab3d.Utilities.Dumper.GetMatrix3DText(matrix.ToWpfMatrix3D()); } else { MatrixText = matrixText; } }