#include "edge-selectors.h" #include "arithmetics.hpp" namespace msdfgen { #define DISTANCE_DELTA_FACTOR … TrueDistanceSelector::EdgeCache::EdgeCache() : … { … } void TrueDistanceSelector::reset(const Point2 &p) { … } void TrueDistanceSelector::addEdge(EdgeCache &cache, const EdgeSegment *prevEdge, const EdgeSegment *edge, const EdgeSegment *nextEdge) { … } void TrueDistanceSelector::merge(const TrueDistanceSelector &other) { … } TrueDistanceSelector::DistanceType TrueDistanceSelector::distance() const { … } PseudoDistanceSelectorBase::EdgeCache::EdgeCache() : … { … } bool PseudoDistanceSelectorBase::getPseudoDistance(double &distance, const Vector2 &ep, const Vector2 &edgeDir) { … } PseudoDistanceSelectorBase::PseudoDistanceSelectorBase() : … { … } void PseudoDistanceSelectorBase::reset(double delta) { … } bool PseudoDistanceSelectorBase::isEdgeRelevant(const EdgeCache &cache, const EdgeSegment *edge, const Point2 &p) const { … } void PseudoDistanceSelectorBase::addEdgeTrueDistance(const EdgeSegment *edge, const SignedDistance &distance, double param) { … } void PseudoDistanceSelectorBase::addEdgePseudoDistance(double distance) { … } void PseudoDistanceSelectorBase::merge(const PseudoDistanceSelectorBase &other) { … } double PseudoDistanceSelectorBase::computeDistance(const Point2 &p) const { … } SignedDistance PseudoDistanceSelectorBase::trueDistance() const { … } void PseudoDistanceSelector::reset(const Point2 &p) { … } void PseudoDistanceSelector::addEdge(EdgeCache &cache, const EdgeSegment *prevEdge, const EdgeSegment *edge, const EdgeSegment *nextEdge) { … } PseudoDistanceSelector::DistanceType PseudoDistanceSelector::distance() const { … } void MultiDistanceSelector::reset(const Point2 &p) { … } void MultiDistanceSelector::addEdge(EdgeCache &cache, const EdgeSegment *prevEdge, const EdgeSegment *edge, const EdgeSegment *nextEdge) { … } void MultiDistanceSelector::merge(const MultiDistanceSelector &other) { … } MultiDistanceSelector::DistanceType MultiDistanceSelector::distance() const { … } SignedDistance MultiDistanceSelector::trueDistance() const { … } MultiAndTrueDistanceSelector::DistanceType MultiAndTrueDistanceSelector::distance() const { … } }