public Matrix2d SetColumn(Tuple2dc t, int c) { if (c == 0) { M00 = t.x; M10 = t.y; } if (c == 1) { M01 = t.x; M11 = t.y; } return this; }
public void GetRows(Tuple2dc r0, Tuple2dc r1) { r0 = new Tuple2dc(M00, M01); r1 = new Tuple2dc(M10, M11); }
public void GetColumns(Tuple2dc c0, Tuple2dc c1) { c0 = new Tuple2dc(M00, M10); c1 = new Tuple2dc(M01, M11); }
public Matrix2d SetRows(Tuple2dc r0, Tuple2dc r1) { M00 = r0.x; M01 = r0.y; M10 = r1.x; M11 = r1.y; return this; }
public Matrix2d SetRow(Tuple2dc t, int r) { if (r == 0) { M00 = t.x; M01 = t.y; } if (r == 1) { M10 = t.x; M11 = t.y; } return this; }
public Matrix2d SetColumns(Tuple2dc c0, Tuple2dc c1) { M00 = c0.x; M01 = c1.x; M10 = c0.y; M11 = c1.y; return this; }