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

Method addEdgePerpendicularDistance

MyGUIEngine/src/msdfgen/core/edge-selectors.cpp:89–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89void PerpendicularDistanceSelectorBase::addEdgePerpendicularDistance(double distance) {
90 if (distance <= 0 && distance > minNegativePerpendicularDistance)
91 minNegativePerpendicularDistance = distance;
92 if (distance >= 0 && distance < minPositivePerpendicularDistance)
93 minPositivePerpendicularDistance = distance;
94}
95
96void PerpendicularDistanceSelectorBase::merge(const PerpendicularDistanceSelectorBase &other) {
97 if (other.minTrueDistance < minTrueDistance) {

Callers 1

addEdgeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected