CARLA
Loading...
Searching...
No Matches
Typedefs | Functions
test_boost_rtree.cpp File Reference
#include "test.h"
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/box.hpp>
#include <boost/geometry/geometries/point.hpp>
#include <boost/geometry/index/rtree.hpp>
#include <algorithm>
#include <utility>
#include <vector>

Go to the source code of this file.

Typedefs

using Box2D = bg::model::box< Point2D >
 
using Point2D = bg::model::point< double, 2, bg::cs::cartesian >
 
using Point3D = bg::model::point< double, 3, bg::cs::cartesian >
 
using Value2D = std::pair< Point2D, std::size_t >
 
using Value3D = std::pair< Point3D, std::size_t >
 

Functions

 TEST (BoostRtree, InsertAndNearestNeighbour2D)
 
 TEST (BoostRtree, InsertAndNearestNeighbour3D)
 
 TEST (BoostRtree, KNearestReturnsExpectedSet)
 
 TEST (BoostRtree, WithinBoxQuery2D)
 

Typedef Documentation

◆ Box2D

using Box2D = bg::model::box<Point2D>

Definition at line 28 of file test_boost_rtree.cpp.

◆ Point2D

using Point2D = bg::model::point<double, 2, bg::cs::cartesian>

Definition at line 26 of file test_boost_rtree.cpp.

◆ Point3D

using Point3D = bg::model::point<double, 3, bg::cs::cartesian>

Definition at line 27 of file test_boost_rtree.cpp.

◆ Value2D

using Value2D = std::pair<Point2D, std::size_t>

Definition at line 29 of file test_boost_rtree.cpp.

◆ Value3D

using Value3D = std::pair<Point3D, std::size_t>

Definition at line 30 of file test_boost_rtree.cpp.

Function Documentation

◆ TEST() [1/4]

TEST ( BoostRtree  ,
InsertAndNearestNeighbour2D   
)

Definition at line 32 of file test_boost_rtree.cpp.

◆ TEST() [2/4]

TEST ( BoostRtree  ,
InsertAndNearestNeighbour3D   
)

Definition at line 45 of file test_boost_rtree.cpp.

◆ TEST() [3/4]

TEST ( BoostRtree  ,
KNearestReturnsExpectedSet   
)

Definition at line 80 of file test_boost_rtree.cpp.

◆ TEST() [4/4]

TEST ( BoostRtree  ,
WithinBoxQuery2D   
)

Definition at line 59 of file test_boost_rtree.cpp.