140 const VECTOR2I endpoint( 1000, 2000 );
142 std::vector<VECTOR2I> polygon;
145 none.
GetShapes( endpoint, tangent, 100, polygon );
146 BOOST_CHECK( polygon.empty() );
149 arrow.
GetShapes( endpoint, tangent, 100, polygon );
150 BOOST_REQUIRE_EQUAL( polygon.size(), 4 );
157 openArrow.GetShapes( endpoint, tangent, 100, polygon );
158 BOOST_REQUIRE_EQUAL( polygon.size(), 3 );
164 square.GetShapes( endpoint, tangent, 100, polygon );
165 BOOST_REQUIRE_EQUAL( polygon.size(), 5 );
173 circle.GetShapes( endpoint, tangent, 100, polygon );
174 BOOST_REQUIRE_EQUAL( polygon.size(), 33 );
void GetShapes(const VECTOR2I &aPoint, const EDA_ANGLE &aTangent, int aLineWidth, std::vector< VECTOR2I > &aPolygon) const
Generate ending geometry as polygon vertices at the given point and direction.
BOOST_CHECK_EQUAL(result, "25.4")