Switch to template types for vectors
This commit is contained in:
parent
9f036d6438
commit
8192ef78e8
105 changed files with 1614 additions and 1424 deletions
|
@ -34,9 +34,9 @@ void LineEndNode::createOrUpdateGeometry(SceneInfo*)
|
|||
if (mStyle == Style::CLOSED_ARROW)
|
||||
{
|
||||
auto polygon = std::make_unique<PolygonNode>();
|
||||
auto p0 = Point(0.0, -mSize / 2.0);
|
||||
auto p1 = Point(mSize, 0.0);
|
||||
auto p2 = Point(0.0, mSize / 2.0);
|
||||
auto p0 = Point2(0.0, -mSize / 2.0);
|
||||
auto p1 = Point2(mSize, 0.0);
|
||||
auto p2 = Point2(0.0, mSize / 2.0);
|
||||
polygon->setPoints({ p0, p1, p2 });
|
||||
polygon->setFillColor({ 0, 0, 0 });
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue