MCPcopy Create free account
hub / github.com/comaps/comaps / GetKeyPoint

Method GetKeyPoint

generator/feature_builder.cpp:70–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70m2::PointD FeatureBuilder::GetKeyPoint() const
71{
72 switch (GetGeomType())
73 {
74 case GeomType::Point: return m_center;
75 case GeomType::Line:
76 case GeomType::Area: return GetGeometryCenter();
77 default: CHECK(false, ()); return m2::PointD();
78 }
79}
80
81void FeatureBuilder::SetCenter(m2::PointD const & p)
82{

Callers 1

DebugPrintFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected