Beispiel #1
0
 public FixTrans3(
     Fix m11, Fix m12, Fix m13, Fix m14,
     Fix m21, Fix m22, Fix m23, Fix m24,
     Fix m31, Fix m32, Fix m33, Fix m34,
     Fix m41, Fix m42, Fix m43, Fix m44
     )
 {
     m     = new FixMatrix4x4();
     m.m11 = m11;
     m.m12 = m12;
     m.m13 = m13;
     m.m14 = m14;
     m.m21 = m21;
     m.m22 = m22;
     m.m23 = m23;
     m.m24 = m24;
     m.m31 = m31;
     m.m32 = m32;
     m.m33 = m33;
     m.m34 = m34;
     m.m41 = m41;
     m.m42 = m42;
     m.m43 = m43;
     m.m44 = m44;
 }
Beispiel #2
0
        public static FixMatrix4x4 operator *(FixMatrix4x4 lhs, FixMatrix4x4 rhs)
        {
            FixMatrix4x4 mf = new FixMatrix4x4();

            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);
        }
Beispiel #3
0
 public FixTrans3(FixMatrix4x4 m)
 {
     this.m = m;
 }