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

brick / geo / 13753277563

09 Mar 2025 10:43PM UTC coverage: 49.787% (+2.5%) from 47.295%
13753277563

push

github

BenMorel
Prepare for release

1749 of 3513 relevant lines covered (49.79%)

975.53 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
            ),
×
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