public void GetRows(out Tuple4dc row0, out Tuple4dc row1, out Tuple4dc row2, out Tuple4dc row3) { row0 = new Tuple4dc(M00, M01, M02, M03); row1 = new Tuple4dc(M10, M11, M12, M13); row2 = new Tuple4dc(M20, M21, M22, M23); row3 = new Tuple4dc(M30, M31, M32, M33); }
public void GetColumns(out Tuple4dc column0, out Tuple4dc column1, out Tuple4dc column2, out Tuple4dc column3) { column0 = new Tuple4dc(M00, M10, M20, M30); column1 = new Tuple4dc(M01, M11, M21, M31); column2 = new Tuple4dc(M02, M12, M22, M32); column3 = new Tuple4dc(M03, M13, M23, M33); }
public Matrix4d SetRows(Tuple4dc row0, Tuple4dc row1, Tuple4dc row2, Tuple4dc row3) { M00 = row0.x; M01 = row0.y; M02 = row0.z; M03 = row0.w; M10 = row1.x; M11 = row1.y; M12 = row1.z; M13 = row1.w; M20 = row2.x; M21 = row2.y; M22 = row2.z; M23 = row2.w; M30 = row3.x; M31 = row3.y; M32 = row3.z; M33 = row3.w; return this; }
public Matrix4d SetRow(Tuple4dc tuple, int row) { if (row == 0) { M00 = tuple.x; M01 = tuple.y; M02 = tuple.z; M03 = tuple.w; } else if (row == 1) { M10 = tuple.x; M11 = tuple.y; M12 = tuple.z; M13 = tuple.w; } else if (row == 2) { M20 = tuple.x; M21 = tuple.y; M22 = tuple.z; M23 = tuple.w; } else if (row == 3) { M30 = tuple.x; M31 = tuple.y; M32 = tuple.z; M33 = tuple.w; } return this; }
public Matrix4d SetColumns(Tuple4dc column0, Tuple4dc column1, Tuple4dc column2, Tuple4dc column3) { M00 = column0.x; M01 = column1.x; M02 = column2.x; M03 = column3.x; M10 = column0.y; M11 = column1.y; M12 = column2.y; M13 = column3.y; M20 = column0.z; M21 = column1.z; M22 = column2.z; M23 = column3.z; M30 = column0.w; M31 = column1.w; M32 = column2.w; M33 = column3.w; return this; }
public Matrix4d SetColumn(Tuple4dc tuple, int column) { if (column == 0) { M00 = tuple.x; M10 = tuple.y; M20 = tuple.z; M30 = tuple.w; } else if (column == 1) { M01 = tuple.x; M11 = tuple.y; M21 = tuple.z; M31 = tuple.w; } else if (column == 2) { M02 = tuple.x; M12 = tuple.y; M22 = tuple.z; M32 = tuple.w; } else if (column == 3) { M03 = tuple.x; M13 = tuple.y; M23 = tuple.z; M33 = tuple.w; } return this; }