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

Method reflect_in_y_axis

deps/tesseract/ccstruct/polyblk.cpp:209–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207 */
208
209void POLY_BLOCK::reflect_in_y_axis() {
210 ICOORDELT *pt; // current point
211 ICOORDELT_IT pts = &vertices; // Iterator.
212
213 do {
214 pt = pts.data();
215 pt->set_x(-pt->x());
216 pts.forward();
217 }
218 while (!pts.at_first());
219 compute_bb();
220}
221
222
223/**

Callers 1

Calls 5

dataMethod · 0.80
set_xMethod · 0.80
xMethod · 0.45
forwardMethod · 0.45
at_firstMethod · 0.45

Tested by

no test coverage detected