xmsgeom  1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
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...
 

Detailed Description

Tests for functions in geoms.cpp.

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

Member Function Documentation

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

Definition at line 2327 of file geoms.cpp.

References TS_ASSERT_DELTA_PT3D.

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

Definition at line 2354 of file geoms.cpp.

References TS_ASSERT_DELTA_PT3D.

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 2384 of file geoms.cpp.

References GmPointInPolyUnitTests::DoTest().


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