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

Method ReplacePoint

libs/geometry/spline.cpp:47–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void Spline::ReplacePoint(PointD const & pt)
48{
49 ASSERT_GREATER(m_position.size(), 1, ());
50 ASSERT(!m_length.empty(), ());
51 ASSERT(!m_direction.empty(), ());
52 m_position.pop_back();
53 m_length.pop_back();
54 m_direction.pop_back();
55 AddPoint(pt);
56}
57
58bool Spline::IsProlonging(PointD const & pt) const
59{

Callers 3

SimplifySplineFunction · 0.80
operator()Method · 0.80
ReplaceLastCornerFunction · 0.80

Calls 4

ASSERTFunction · 0.85
sizeMethod · 0.45
emptyMethod · 0.45
pop_backMethod · 0.45

Tested by

no test coverage detected