MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / TranslatePath

Function TranslatePath

TheForceEngine/TFE_Polygon/clipper.cpp:4523–4529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4521//------------------------------------------------------------------------------
4522
4523void TranslatePath(const Path& input, Path& output, const IntPoint delta)
4524{
4525 //precondition: input != output
4526 output.resize(input.size());
4527 for (size_t i = 0; i < input.size(); ++i)
4528 output[i] = IntPoint(input[i].X + delta.X, input[i].Y + delta.Y);
4529}
4530//------------------------------------------------------------------------------
4531
4532void MinkowskiSum(const Path& pattern, const Paths& paths, Paths& solution, bool pathIsClosed)

Callers 1

MinkowskiSumFunction · 0.85

Calls 3

IntPointClass · 0.85
resizeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected