コード例 #1
0
 public static void GetRowTest(
     RefReadOnlyMatrix4x4 matrix,
     int index,
     RefReadOnlyRow <float, RefReadOnlyMatrix4x4> expected)
 => CollectionAssert.AreEqual(
     expected, matrix.GetRow <float, RefReadOnlyMatrix4x4>(index));
コード例 #2
0
 public static void GetRowThrowExceptionIfIndexExceedsColumns(
     RefReadOnlyMatrix4x4 matrix, int index)
 => Assert.Throws <ArgumentOutOfRangeException>(
     () => matrix.GetRow <float, RefReadOnlyMatrix4x4>(index));