MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / close

Method close

dep/agg/include/agg_vertex_sequence.h:101–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99 //------------------------------------------------------------------------
100 template <class T, unsigned S>
101 void vertex_sequence<T, S>::close(bool closed)
102 {
103 while (base_type::size() > 1)
104 {
105 if ((*this)[base_type::size() - 2]((*this)[base_type::size() - 1]))
106 break;
107 T t = (*this)[base_type::size() - 1];
108 base_type::remove_last();
109 modify_last(t);
110 }
111
112 if (closed)
113 {
114 while (base_type::size() > 1)
115 {
116 if ((*this)[base_type::size() - 1]((*this)[0]))
117 break;
118 base_type::remove_last();
119 }
120 }
121 }
122
123 //-------------------------------------------------------------vertex_dist
124 // Vertex (x, y) with the distance to the next one. The last vertex has

Callers 9

rewindMethod · 0.45
finalize_pathMethod · 0.45
rewindMethod · 0.45
rewindMethod · 0.45
rewindMethod · 0.45
finalize_pathMethod · 0.45
shorten_pathFunction · 0.45
renderMethod · 0.45
rewindMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected