Метод |
Описание |
|
testGetReverseWorksAsExpected ( ) |
|
|
testIfAddPointsWorksAsExpected ( ) |
|
|
testIfContainsPointCheckWithLatitudeSignSwitchWorksAsExpected ( ) |
|
|
testIfContainsPointCheckWithLongitudeSignSwitchWorksAsExpected ( ) |
|
|
testIfContainsPointCheckWorksAsExpected ( ) |
|
|
testIfGetLatsWorksAsExpected ( ) |
|
|
testIfGetLngsWorksAsExpected ( ) |
|
|
testIfGetNumberOfPointsWorksAsExpected ( ) |
|
|
testIfGetSegmentsWorksAsExpected ( ) |
|
|
testIfNotContainsPointCheckWithWorksAsExpected ( ) |
|
|
testIfPerimeterCalculationWorksAsExpected ( ) |
*
public function testIfContainsPointCheckWithLongitudesCrossingThe180thMeridianWorksAsExpected()
{
$polygon = new Polygon();
$polygon->addPoint(new Coordinate(10, 150));
$polygon->addPoint(new Coordinate(10, -150));
$polygon->addPoint(new Coordinate(30, -150));
$polygon->addPoint(new Coordinate(30, 150)); |
|
testIfPolygonContainsGeometryWithLineInsideAndOutsideWorksAsExpected ( ) |
|
|
testIfPolygonContainsGeometryWithLineInsideWorksAsExpected ( ) |
|
|
testIfPolygonContainsGeometryWithLineOutsideWorksAsExpected ( ) |
|
|
testIfPolygonContainsGeometryWithPointInsideWorksAsExpected ( ) |
|
|
testIfPolygonContainsGeometryWithPointOutsideWorksAsExpected ( ) |
|
|
testIfPolygonContainsGeometryWithPolygonInsideAndOutsideWorksAsExpected ( ) |
|
|
testIfPolygonContainsGeometryWithPolygonInsideWorksAsExpected ( ) |
*
public function testIfAreaCalculationWorksAsExpected()
{
$polygon = new Polygon();
$polygon->addPoint(new Coordinate(52, 13));
$polygon->addPoint(new Coordinate(53, 13));
$polygon->addPoint(new Coordinate(53, 12));
$polygon->addPoint(new Coordinate(52, 12)); |
|
testIfPolygonContainsGeometryWithPolygonOutsideWorksAsExpected ( ) |
|
|
testIfPolygonContainsGeometryWithPolylineInsideAndOutsideWorksAsExpected ( ) |
|
|
testIfPolygonContainsGeometryWithPolylineInsideWorksAsExpected ( ) |
|
|
testIfPolygonContainsGeometryWithPolylineOutsideWorksAsExpected ( ) |
|
|
testReverseTwiceWorksAsExpected ( ) |
|
|