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

Function rotateVector

MyGUIEngine/src/msdfgen/ext/import-svg.cpp:102–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102static Vector2 rotateVector(Vector2 v, Vector2 direction) {
103 return Vector2(direction.x*v.x-direction.y*v.y, direction.y*v.x+direction.x*v.y);
104}
105
106static void addArcApproximate(Contour &contour, Point2 startPoint, Point2 endPoint, Vector2 radius, double rotation, bool largeArc, bool sweep) {
107 if (endPoint == startPoint)

Callers 1

addArcApproximateFunction · 0.85

Calls 1

Vector2Class · 0.85

Tested by

no test coverage detected