Path::addTriangle() with Point parameters


#1

Would it make sense to add a Path::addTriangle() method which passes Point values?

void Path::addTriangle (const Point<float> point1,
                        const Point<float> point2,
                        const Point<float> point3)
{
    startNewSubPath (point1);
    lineTo (point2);
    lineTo (point3);
    closeSubPath();
}

Thanks,

Rail


#2

Thanks, good request!


#3

Thanks!

Rail