MCPcopy Create free account
hub / github.com/KDE/okular / isLeftOfVector

Function isLeftOfVector

core/annotations.cpp:39–43  ·  view source on GitHub ↗

* True, if point @p c lies to the left of the vector from @p a to @p b * @internal */

Source from the content-addressed store, hash-verified

37 * @internal
38 */
39static 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

Callers 1

distanceSqrMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected