• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

brick / geo / 13715715561

06 Mar 2025 10:47PM UTC coverage: 44.086% (-40.4%) from 84.507%
13715715561

push

github

BenMorel
Remove Psalm-specific annotations

1543 of 3500 relevant lines covered (44.09%)

270.91 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

30.0
/src/TIN.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Brick\Geo;
6

7
use Brick\Geo\Attribute\NoProxy;
8
use Brick\Geo\Exception\UnexpectedGeometryException;
9
use Brick\Geo\Projector\Projector;
10
use Override;
11

12
/**
13
 * A TIN (triangulated irregular network) is a PolyhedralSurface consisting only of Triangle patches.
14
 *
15
 * @template-extends PolyhedralSurface<Triangle>
16
 */
17
class TIN extends PolyhedralSurface
18
{
19
    #[Override]
20
    protected function patchType() : string
21
    {
22
        return Triangle::class;
176✔
23
    }
24

25
    #[NoProxy, Override]
26
    public function geometryType() : string
27
    {
28
        return 'TIN';
184✔
29
    }
30

31
    #[NoProxy, Override]
32
    public function geometryTypeBinary() : int
33
    {
34
        return Geometry::TIN;
96✔
35
    }
36

37
    #[Override]
38
    public function project(Projector $projector): TIN
39
    {
40
        return new TIN(
×
41
            $projector->getTargetCoordinateSystem($this->coordinateSystem),
×
42
            ...array_map(
×
43
                fn (Polygon $patch) => $patch->project($projector),
×
44
                $this->patches,
×
45
            ),
×
46
        );
×
47
    }
48
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc