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

Method GetSquaredLength

generator/feature_merger.cpp:108–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108double MergedFeatureBuilder::GetSquaredLength() const
109{
110 PointSeq const & poly = GetOuterGeometry();
111
112 double sqLen = 0.0;
113 for (size_t i = 1; i < poly.size(); ++i)
114 sqLen += poly[i - 1].SquaredLength(poly[i]);
115 return sqLen;
116}
117
118FeatureMergeProcessor::Key FeatureMergeProcessor::GetKey(m2::PointD const & p)
119{

Callers 1

DoMergeMethod · 0.80

Calls 2

SquaredLengthMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected