コード例 #1
0
ファイル: Matrix.cs プロジェクト: wnf0000/Eto
 /// <summary>
 /// Append the specified <paramref name="matrices"/> to the <paramref name="matrix"/>
 /// </summary>
 /// <param name="matrix">Matrix to append to</param>
 /// <param name="matrices">Matrices to append to the matrix</param>
 public static void Append(this IMatrix matrix, params IMatrix[] matrices)
 {
     for (int i = 0; i < matrices.Length; i++)
     {
         matrix.Append(matrices[i]);
     }
 }
コード例 #2
0
ファイル: Matrix.cs プロジェクト: wnf0000/Eto
 /// <summary>
 /// Multiply the specified <paramref name="matrix"/> and <paramref name="matrices"/>.
 /// </summary>
 /// <returns>A new matrix with the product of multiplying each of the specified matrix and matrices</returns>
 /// <param name="matrix">Matrix to multiply with</param>
 /// <param name="matrices">Matrices to append</param>
 public static IMatrix Multiply(IMatrix matrix, params IMatrix[] matrices)
 {
     matrix = matrix.Clone();
     for (int i = 0; i < matrices.Length; i++)
     {
         matrix.Append(matrices[i]);
     }
     return(matrix);
 }
コード例 #3
0
ファイル: TestGraphicsHandler.cs プロジェクト: yaram/Eto
 public void MultiplyTransform(IMatrix matrix)
 {
     transform.Append(matrix);
 }
コード例 #4
0
ファイル: Matrix.cs プロジェクト: JohnACarruthers/Eto
		/// <summary>
		/// Multiply the specified <paramref name="matrix"/> and <paramref name="matrices"/>.
		/// </summary>
		/// <returns>A new matrix with the product of multiplying each of the specified matrix and matrices</returns>
		/// <param name="matrix">Matrix to multiply with</param>
		/// <param name="matrices">Matrices to append</param>
		public static IMatrix Multiply (IMatrix matrix, params IMatrix[] matrices)
		{
			matrix = matrix.Clone ();
			for (int i = 0; i < matrices.Length; i++)
				matrix.Append (matrices [i]);
			return matrix;
		}