You are here

public function focalPointTest::calculateEffectAnchorProvider in Focal Point 7

Calculate EffectAnchor Provider.

File

test/FocalPointTest.php, line 52

Class

focalPointTest
Class for Focal Point Test.

Code

public function calculateEffectAnchorProvider() {
  return array(
    array(
      640,
      300,
      50,
      0,
      170,
    ),
    array(
      640,
      300,
      80,
      0,
      340,
    ),
    array(
      640,
      300,
      10,
      0,
      0,
    ),
    array(
      640,
      640,
      640,
      0,
      0,
    ),
    array(
      640,
      800,
      50,
      0,
      0,
    ),
    array(
      640,
      300,
      50,
      10,
      160,
    ),
    array(
      640,
      300,
      50,
      -10,
      180,
    ),
    array(
      640,
      300,
      50,
      10000,
      0,
    ),
    array(
      640,
      300,
      50,
      -10000,
      340,
    ),
  );
}