Skip to content

Commit

Permalink
Merge branch 'main' into patch-2
Browse files Browse the repository at this point in the history
saibotk committed Jul 21, 2024
2 parents 94bcb35 + 750645e commit 734994f
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -15,6 +15,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Improved
- Updated `spatie/invade` to v2, works without reflection now 🥳

### Fixed
- Fixed not updating `Point` dimension when using `setAltitude`

## [1.5.0](https://github.com/clickbar/laravel-magellan/tree/1.5.0) - 2024-01-19

### Added
6 changes: 3 additions & 3 deletions src/Data/Geometries/Point.php
Original file line number Diff line number Diff line change
@@ -127,7 +127,7 @@ public function getLatitude(): float
public function setLatitude(float $latitude): void
{
$this->assertPointIsGeodetic();
$this->y = $latitude;
$this->setY($latitude);
}

public function getLongitude(): float
@@ -140,7 +140,7 @@ public function getLongitude(): float
public function setLongitude(float $longitude): void
{
$this->assertPointIsGeodetic();
$this->x = $longitude;
$this->setX($longitude);
}

public function getAltitude(): ?float
@@ -153,7 +153,7 @@ public function getAltitude(): ?float
public function setAltitude(float $altitude): void
{
$this->assertPointIsGeodetic();
$this->z = $altitude;
$this->setZ($altitude);
}

private function assertPointIsGeodetic()

0 comments on commit 734994f

Please sign in to comment.