Bounds Class

class BeastBytes\Yii\Leaflet\Types\Bounds

Represents a rectangular area on a map in pixel coordinates

@template T array{0: int, 1: int}|array{x: int, y: int}|Point

__construct(array|Point $corner1, array|Point $corner2)

Create a new Bounds instance

Parameters:
  • $corner1 (T) – The top-left corner

  • $corner2 (T) – The bottom-right corner

Returns:

A new Bounds instance

Return type:

Bounds