msdfgen: Sync with upstream 1.10

This commit is contained in:
Rémi Verschelde 2023-06-07 15:36:35 +02:00
parent ea6a141fff
commit 3c25dfe0e4
No known key found for this signature in database
GPG key ID: C3336907360768E1
10 changed files with 22 additions and 103 deletions

View file

@ -2,12 +2,11 @@
#include "SignedDistance.h"
#include <cmath>
#include <cfloat>
namespace msdfgen {
const SignedDistance SignedDistance::INFINITE(-1e240, 1);
SignedDistance::SignedDistance() : distance(-1e240), dot(1) { }
SignedDistance::SignedDistance() : distance(-DBL_MAX), dot(1) { }
SignedDistance::SignedDistance(double dist, double d) : distance(dist), dot(d) { }