Пример #1
0
 // Sets a row of the matrix.
 public void SetRow(int index, FPVector4 row)
 {
     this[index, 0] = row.x;
     this[index, 1] = row.y;
     this[index, 2] = row.z;
     this[index, 3] = row.w;
 }
Пример #2
0
 public FPMatrix4x4(FPVector4 column0, FPVector4 column1, FPVector4 column2, FPVector4 column3)
 {
     this.m00 = column0.x; this.m01 = column1.x; this.m02 = column2.x; this.m03 = column3.x;
     this.m10 = column0.y; this.m11 = column1.y; this.m12 = column2.y; this.m13 = column3.y;
     this.m20 = column0.z; this.m21 = column1.z; this.m22 = column2.z; this.m23 = column3.z;
     this.m30 = column0.w; this.m31 = column1.w; this.m32 = column2.w; this.m33 = column3.w;
 }
Пример #3
0
 // Sets a column of the matrix.
 public void SetColumn(int index, FPVector4 column)
 {
     this[0, index] = column.x;
     this[1, index] = column.y;
     this[2, index] = column.z;
     this[3, index] = column.w;
 }