* True, if point @p c lies to the left of the vector from @p a to @p b * @internal */
| 37 | * @internal |
| 38 | */ |
| 39 | static bool isLeftOfVector(const NormalizedPoint &a, const NormalizedPoint &b, const NormalizedPoint &c) |
| 40 | { |
| 41 | // cross product |
| 42 | return ((b.x - a.x) * (c.y - a.y) - (b.y - a.y) * (c.x - a.x)) > 0; |
| 43 | } |
| 44 | |
| 45 | /** |
| 46 | * @brief Calculates distance of the given point @p x @p y @p xScale @p yScale to the @p path |