Determine position
public static getInnerCoords ( string $position, array $canvas, array $box, array $offset = [0, 0] ) : array | ||
$position | string | Position name or code |
$canvas | array | Width and Height of canvas |
$box | array | Width and Height of box that will be located on canvas |
$offset | array | Forced offset X, Y |
return | array |