public static ItemRequestResult <Index2D> Test <FloatPredicate>(
     RefMatrix4x4 matrix, FloatPredicate match)
     where FloatPredicate : struct, IPredicate <float>
 => matrix.FindIndex <float, RefMatrix4x4, FloatPredicate>(match);
 public static void Index2DBounds2DThrowsExceptionIfSectorIsOutOfBounds(
     RefMatrix4x4 matrix, Index2D startIndex, Bounds2D sector)
 => Assert.Throws <ArgumentOutOfRangeException>(
     () => matrix.FindIndex <float, RefMatrix4x4>(
         startIndex, sector, o => true));
 public static ItemRequestResult <Index2D> Test(
     RefMatrix4x4 matrix,
     Index2D startIndex,
     Bounds2D sector,
     Predicate <float> match)
 => matrix.FindIndex(startIndex, sector, match);
 public static ItemRequestResult <Index2D> Test(
     RefMatrix4x4 matrix, Predicate <float> match)
 => matrix.FindIndex(match);
コード例 #5
0
 public static void GetRowTest(
     RefMatrix4x4 matrix, int index, RefRow <float, RefMatrix4x4> expected)
 => CollectionAssert.AreEqual(expected, matrix.GetRow <float, RefMatrix4x4>(index));
コード例 #6
0
 public static void GetRowThrowExceptionIfIndexExceedsColumns(
     RefMatrix4x4 matrix, int index)
 => Assert.Throws <ArgumentOutOfRangeException>(
     () => matrix.GetRow <float, RefMatrix4x4>(index));
 public static void Index2DBounds2DThrowsExceptionIfSectorIsOutOfBounds(
     RefMatrix4x4 matrix, Index2D startIndex, Bounds2D sector)
 => Assert.Throws <ArgumentOutOfRangeException>(
     () => matrix.FindLastIndex <
         float, RefMatrix4x4, AlwaysTruePredicate <float> >(
         startIndex, sector, new AlwaysTruePredicate <float>()));
 public static void Index2DBounds2DThrowsExceptionIfStartIndexIsOutOfBounds(
     RefMatrix4x4 matrix, Index2D startIndex)
 => Assert.Throws <ArgumentOutOfRangeException>(
     () => matrix.FindLastIndex <float, RefMatrix4x4>(
         startIndex, new Bounds2D(), o => true));