offsetArtifacts static method

void offsetArtifacts(
  1. List<Artifact> matrices,
  2. int x,
  3. int y
)

Applies an offset to the location of a list of matrices.

Implementation

static void offsetArtifacts(
  final List<Artifact> matrices,
  final int x,
  final int y,
) {
  for (final Artifact matrix in matrices) {
    matrix.locationFound = matrix.locationFound.translate(x, y);
  }
}