MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / ShiftShape

Function ShiftShape

jni/stasm/misc.cpp:567–580  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

565}
566
567Shape ShiftShape( // add xshift and yshift to shape coords, skipping unused points
568 const Shape& shape, // in
569 int xshift, // in
570 int yshift) // in
571{
572 Shape shiftedshape(shape.clone());
573 for (int i = 0; i < shape.rows; i++)
574 if (PointUsed(shape, i))
575 {
576 shiftedshape(i, IX) += xshift;
577 shiftedshape(i, IY) += yshift;
578 }
579 return shiftedshape;
580}
581
582Shape ShiftShape( // like above but shifts are doubles not ints
583 const Shape& shape, // in

Callers 2

ImgShapeToRoiFrameFunction · 0.85
RoiShapeToImgFrameFunction · 0.85

Calls 1

PointUsedFunction · 0.85

Tested by

no test coverage detected