MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / remove

Method remove

src/Core/Transform/Polygon.cpp:23–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21 }
22
23 void PolygonPoint::remove() const
24 {
25 std::unique_ptr<PolygonPoint> tmpContainer;
26 for (auto& point : m_parent.m_points)
27 {
28 if (point.get() == this)
29 point.swap(tmpContainer);
30 }
31 m_parent.m_points.erase(m_parent.m_points.begin() + index);
32 for (point_index_t i = index; i < m_parent.m_points.size(); i++)
33 m_parent.m_points[i]->rw_index = i;
34 }
35
36 double PolygonPoint::distance(const Transform::UnitVector& position) const
37 {

Callers

nothing calls this directly

Calls 5

getMethod · 0.45
swapMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected