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

Function crossProduct

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

A special version of the cross product for 2D vectors (returns scalar value).

Source from the content-addressed store, hash-verified

109
110/// A special version of the cross product for 2D vectors (returns scalar value).
111inline double crossProduct(const Vector2 a, const Vector2 b) {
112 return a.x*b.y-a.y*b.x;
113}
114
115inline bool operator==(const Vector2 a, const Vector2 b) {
116 return a.x == b.x && a.y == b.y;

Callers 13

boundMitersMethod · 0.85
createMethod · 0.85
lengthMethod · 0.85
signedDistanceMethod · 0.85
moveStartPointMethod · 0.85
moveEndPointMethod · 0.85
isCornerFunction · 0.85
convergentCurveOrderingFunction · 0.85
arcAngleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected