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

Method rewind

dep/agg/src/agg_vcgen_stroke.cpp:69–80  ·  view source on GitHub ↗

------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

67
68 //------------------------------------------------------------------------
69 void vcgen_stroke::rewind(unsigned)
70 {
71 if(m_status == initial)
72 {
73 m_src_vertices.close(m_closed != 0);
74 shorten_path(m_src_vertices, m_shorten, m_closed);
75 if(m_src_vertices.size() < 3) m_closed = 0;
76 }
77 m_status = ready;
78 m_src_vertex = 0;
79 m_out_vertex = 0;
80 }
81
82
83 //------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 3

shorten_pathFunction · 0.85
closeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected