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

Method direction

MyGUIEngine/src/msdfgen/core/edge-segments.cpp:121–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121Vector2 LinearSegment::direction(double param) const {
122 return p[1]-p[0];
123}
124
125Vector2 QuadraticSegment::direction(double param) const {
126 Vector2 tangent = mix(p[1]-p[0], p[2]-p[1], param);

Callers 7

addEdgeMethod · 0.80
boundMitersMethod · 0.80
normalizeMethod · 0.80
edgeColoringSimpleFunction · 0.80
edgeColoringInkTrapFunction · 0.80
edgeColoringByDistanceFunction · 0.80

Calls 1

mixFunction · 0.85

Tested by

no test coverage detected