31 const std::vector<VECTOR2I> pts = {
32 { aCentre.
x - aSize.
x / 2, aCentre.
y - aSize.
y / 2 },
33 { aCentre.
x - aSize.
x / 2, aCentre.
y + aSize.
y / 2 },
34 { aCentre.
x + aSize.
x / 2, aCentre.
y + aSize.
y / 2 },
35 { aCentre.
x + aSize.
x / 2, aCentre.
y - aSize.
y / 2 },
Represent a polyline containing arcs as well as line segments: A chain of connected line and/or arc s...
void SetClosed(bool aClosed)
Mark the line chain as closed (i.e.
Utilities for creating useful line chain idioms commonly founds in QA utilities and tests.
SHAPE_LINE_CHAIN BuildSquareChain(int aSize, const VECTOR2I &aCentre)
Builds a square SHAPE_LINE_CHAIN of a certain size at a certain centre.
SHAPE_LINE_CHAIN BuildRectChain(const VECTOR2I &aSize, const VECTOR2I &aCentre)
Builds a rectangular SHAPE_LINE_CHAIN of a certain size at a certain centre.