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

Method Move

deps/tesseract/ccstruct/blobs.cpp:191–199  ·  view source on GitHub ↗

Moves by the given vec in place.

Source from the content-addressed store, hash-verified

189
190// Moves by the given vec in place.
191void TESSLINE::Move(const ICOORD vec) {
192 EDGEPT* pt = loop;
193 do {
194 pt->pos.x += vec.x();
195 pt->pos.y += vec.y();
196 pt = pt->next;
197 } while (pt != loop);
198 SetupFromPos();
199}
200
201// Scales by the given factor in place.
202void TESSLINE::Scale(float factor) {

Callers 1

LocalNormBlobMethod · 0.80

Calls 2

xMethod · 0.45
yMethod · 0.45

Tested by

no test coverage detected