|
@@ 1347-1349 (lines=3) @@
|
| 1344 |
|
if ($distance && $iterations) { |
| 1345 |
|
for ($a = 0; $a < $iterations; $a++) { |
| 1346 |
|
$yOff = round(sin((2 * pi() / $iterations * ($a + 1))) * 100 * $distance); |
| 1347 |
|
if ($yOff) { |
| 1348 |
|
$yOff = (int)(ceil(abs(($yOff / 100))) * ($yOff / abs($yOff))); |
| 1349 |
|
} |
| 1350 |
|
$xOff = round(cos((2 * pi() / $iterations * ($a + 1))) * 100 * $distance); |
| 1351 |
|
if ($xOff) { |
| 1352 |
|
$xOff = (int)(ceil(abs(($xOff / 100))) * ($xOff / abs($xOff))); |
|
@@ 1351-1353 (lines=3) @@
|
| 1348 |
|
$yOff = (int)(ceil(abs(($yOff / 100))) * ($yOff / abs($yOff))); |
| 1349 |
|
} |
| 1350 |
|
$xOff = round(cos((2 * pi() / $iterations * ($a + 1))) * 100 * $distance); |
| 1351 |
|
if ($xOff) { |
| 1352 |
|
$xOff = (int)(ceil(abs(($xOff / 100))) * ($xOff / abs($xOff))); |
| 1353 |
|
} |
| 1354 |
|
$res[$a] = [$xOff, $yOff]; |
| 1355 |
|
} |
| 1356 |
|
} |