Пример #1
0
int main( int argc, char* argv[] ) 
{
    OPENSTEER_UNUSED_PARAMETER(argc);
    OPENSTEER_UNUSED_PARAMETER(argv);
    
    CppUnit::TextUi::TestRunner test_runner;
    CppUnit::TestFactoryRegistry& test_factory_registry = CppUnit::TestFactoryRegistry::getRegistry();
    
    test_runner.addTest( test_factory_registry.makeTest() );
    bool successful_test = test_runner.run();
    
    return successful_test;
}
float 
OpenSteer::PolylineSegmentedPathwaySegmentRadii::mapSegmentDistanceToRadius( size_type segmentIndex, 
                                                                             float distanceOnSegment ) const
{
    OPENSTEER_UNUSED_PARAMETER(distanceOnSegment);
    assert( segmentIndex < segmentCount() && "segmentIndex out of range." );
    return segmentRadii_[ segmentIndex ];
}