Esempio n. 1
0
        // Token: 0x060001E3 RID: 483 RVA: 0x00007830 File Offset: 0x00005A30
        public static Matrix3P operator *(Matrix3P a, Matrix3P b)
        {
            Matrix3P matrix3P = new Matrix3P();
            float    num      = b[0, 0];
            float    num2     = b[1, 0];
            float    num3     = b[2, 0];

            matrix3P[0, 0] = a[0, 0] * num + a[0, 1] * num2 + a[0, 2] * num3;
            matrix3P[1, 0] = a[1, 0] * num + a[1, 1] * num2 + a[1, 2] * num3;
            matrix3P[2, 0] = a[2, 0] * num + a[2, 1] * num2 + a[2, 2] * num3;
            num            = b[0, 1];
            num2           = b[1, 1];
            num3           = b[2, 1];
            matrix3P[0, 1] = a[0, 0] * num + a[0, 1] * num2 + a[0, 2] * num3;
            matrix3P[1, 1] = a[1, 0] * num + a[1, 1] * num2 + a[1, 2] * num3;
            matrix3P[2, 1] = a[2, 0] * num + a[2, 1] * num2 + a[2, 2] * num3;
            num            = b[0, 2];
            num2           = b[1, 2];
            num3           = b[2, 2];
            matrix3P[0, 2] = a[0, 0] * num + a[0, 1] * num2 + a[0, 2] * num3;
            matrix3P[1, 2] = a[1, 0] * num + a[1, 1] * num2 + a[1, 2] * num3;
            matrix3P[2, 2] = a[2, 0] * num + a[2, 1] * num2 + a[2, 2] * num3;
            return(matrix3P);
        }
Esempio n. 2
0
 // Token: 0x060001ED RID: 493 RVA: 0x00007B29 File Offset: 0x00005D29
 private Matrix4P(Matrix3P orientation, Vector3P position)
 {
     this.orientation = orientation;
     this.position    = position;
 }