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 },
 
   39    chain.SetClosed( 
true );
 
 
Represent a polyline containing arcs as well as line segments: A chain of connected line and/or arc s...
 
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.
 
const SHAPE_LINE_CHAIN chain
 
VECTOR2< int32_t > VECTOR2I