public static Matrix4fix operator *(Matrix4fix lhs, Matrix4fix rhs) { Matrix4fix mf = new Matrix4fix(); for (int i = 0; i < 4; i++) { for (int j = 0; j < 4; j++) { mf[i, j] = ( lhs[i, 0] * rhs[0, j] + lhs[i, 1] * rhs[1, j] + lhs[i, 2] * rhs[2, j] + lhs[i, 3] * rhs[3, j]); } } return(mf); }
public FixTrans3( Fix m00, Fix m01, Fix m02, Fix m03, Fix m10, Fix m11, Fix m12, Fix m13, Fix m20, Fix m21, Fix m22, Fix m23 ) { m = new Matrix4fix(); m.m00 = m00; m.m01 = m01; m.m02 = m02; m.m03 = m03; m.m10 = m10; m.m11 = m11; m.m12 = m12; m.m13 = m13; m.m20 = m20; m.m21 = m21; m.m22 = m22; m.m23 = m23; }
public FixTrans3(Matrix4fix m) { this.m = m; }