MCPcopy Create free account
hub / github.com/MyGUI/mygui / dotProduct

Function dotProduct

MyGUIEngine/src/msdfgen/core/Vector2.hpp:106–108  ·  view source on GitHub ↗

Dot product of two vectors.

Source from the content-addressed store, hash-verified

104
105/// Dot product of two vectors.
106inline double dotProduct(const Vector2 a, const Vector2 b) {
107 return a.x*b.x+a.y*b.y;
108}
109
110/// A special version of the cross product for 2D vectors (returns scalar value).
111inline double crossProduct(const Vector2 a, const Vector2 b) {

Callers 11

addEdgeMethod · 0.85
boundMitersMethod · 0.85
lengthMethod · 0.85
signedDistanceMethod · 0.85
moveStartPointMethod · 0.85
moveEndPointMethod · 0.85
normalizeMethod · 0.85
isCornerFunction · 0.85
arcAngleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected