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

brick / geo / 13716844819

07 Mar 2025 08:35AM UTC coverage: 47.964% (+3.9%) from 44.086%
13716844819

push

github

BenMorel
Add TypeChecker for engines

8 of 21 new or added lines in 5 files covered. (38.1%)

98 existing lines in 18 files now uncovered.

1684 of 3511 relevant lines covered (47.96%)

944.32 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
 * @final
17
 */
18
class TIN extends PolyhedralSurface
19
{
20
    #[Override]
21
    protected function patchType() : string
22
    {
23
        return Triangle::class;
616✔
24
    }
25

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

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

38
    #[Override]
39
    public function project(Projector $projector): TIN
40
    {
41
        return new TIN(
×
42
            $projector->getTargetCoordinateSystem($this->coordinateSystem),
×
43
            ...array_map(
×
44
                fn (Polygon $patch) => $patch->project($projector),
×
45
                $this->patches,
×
46
            ),
×
UNCOV
47
        );
×
48
    }
49
}
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