Suggestion: Line constructor from point, length and angle


#1

For geometric calculations I use a lot of lines in mathematical sense defined by point and angle. So I created this additional constructor:

    /** Creates a line from its start point, length and angle. */
    Line (const Point<ValueType> startPoint,
          const ValueType length,
          const ValueType angle) noexcept
        : start (startPoint),
          end (startPoint.getPointOnCircumference (length, angle))
    {
    }

Maybe others find this usefull as well, so I would appreciate it being added to the API…
Cheers


#2

Seems like a decent request, will have a look.


#3

Cool, thank you.


#4

Thanks @jules for adding!