xmsgrid  1.0
GeomsXmsngUnitTests Class Reference

Tests for functions in geoms.cpp. More...

Inheritance diagram for GeomsXmsngUnitTests:

Public Member Functions

void test_gmComputePolygonCentroid ()
 
void test_gmComputeCentroid ()
 
void test_gmPointInPolygon2D_Speed ()
 Test lots of points for timing purposes. Only in release, not debug. More...
 
void testConvexHull ()
 Test building a convex hull.
 
void testDoLineSegmentsCross ()
 Test determining if two lines intersect.
 

Detailed Description

Tests for functions in geoms.cpp.

Definition at line 30 of file geoms.t.h.

Member Function Documentation

◆ test_gmComputeCentroid()

void GeomsXmsngUnitTests::test_gmComputeCentroid ( )
Returns
CxxTest::TestGroup reference.
// 10 *------*
//    |      |
//    |      *
//    |      |
//  0 *------*
//    0     10
/// 

Definition at line 2449 of file geoms.cpp.

References xms::gmComputeCentroid(), and TS_ASSERT_DELTA_PT3D.

◆ test_gmComputePolygonCentroid()

void GeomsXmsngUnitTests::test_gmComputePolygonCentroid ( )
// 10 *------*
//    |      |
//    |      *
//    |      |
//  0 *------*
//    0     10
/// 

Definition at line 2476 of file geoms.cpp.

References xms::gmComputePolygonCentroid(), and TS_ASSERT_DELTA_PT3D.

◆ test_gmPointInPolygon2D_Speed()

void GeomsXmsngUnitTests::test_gmPointInPolygon2D_Speed ( )

Test lots of points for timing purposes. Only in release, not debug.

See also
PointInPolyTests::testSpeed
// 30 -       45--44  41--40  37--36  33--32  29------28
//    |        |   |   |   |   |   |   |   |   |       |
// 25 -       46  43--42  39--38  35--34  31--30  26--27
//    |        |                                   |
// 20 -       47---48  2---3---4---5---6---7---8  25--24
//    |            |   |                       |       |
// 15 -       50---49  1  18---17 14---13 10---9  22--23
//    |        |       |   |   |   |   |   |       |
// 10 -       51       0---19 16---15 12---11     21--20
//    |        |                                       |
//  5 -       52   2---3   6---7  10--11  14--15  18--19
//    |        |   |   |   |   |   |   |   |   |   |
//  0 -        0---1   4---5   8---9  12--13  16--17
//
//             |---|---|---|---|---|---|---|---|---|---|
//             0   5  10  15  20  25  30  35  40  45  50  55
/// 

Definition at line 2506 of file geoms.cpp.

References GmPointInPolyUnitTests::DoTest().


The documentation for this class was generated from the following files: