MCPcopy Create free account
hub / github.com/creatale/node-dv / move

Method move

deps/tesseract/ccstruct/polyblk.cpp:230–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228 */
229
230void POLY_BLOCK::move(ICOORD shift) {
231 ICOORDELT *pt; //current point
232 ICOORDELT_IT pts = &vertices; //iterator
233
234 do {
235 pt = pts.data ();
236 *pt += shift;
237 pts.forward ();
238 }
239 while (!pts.at_first ());
240 compute_bb();
241}
242
243
244#ifndef GRAPHICS_DISABLED

Callers

nothing calls this directly

Calls 3

dataMethod · 0.80
forwardMethod · 0.45
at_firstMethod · 0.45

Tested by

no test coverage detected