MCPcopy Create free account
hub / github.com/Chlumsky/msdfgen / ShapeDistanceChecker

Method ShapeDistanceChecker

core/MSDFErrorCorrection.cpp:90–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88 const float *msd;
89 bool protectedFlag;
90 inline ShapeDistanceChecker(const BitmapConstSection<float, N> &sdf, const Shape &shape, const Projection &projection, DistanceMapping distanceMapping, double minImproveRatio) : distanceFinder(shape), sdf(sdf), distanceMapping(distanceMapping), minImproveRatio(minImproveRatio) {
91 texelSize = projection.unprojectVector(Vector2(1));
92 }
93 inline ArtifactClassifier classifier(const Vector2 &direction, double span) {
94 return ArtifactClassifier(this, direction, span);
95 }

Callers

nothing calls this directly

Calls 2

Vector2Class · 0.85
unprojectVectorMethod · 0.80

Tested by

no test coverage detected