diff options
author | Norbert Preining <norbert@preining.info> | 2021-12-28 03:01:00 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-12-28 03:01:00 +0000 |
commit | ecdf859b6ce481abfd530425dcf6f0f764bd0001 (patch) | |
tree | 13bc161dc046876ac6c92fce5f9f5034ba9aa573 /graphics/asymptote/base/plain_constants.asy | |
parent | 790995b7e79697514364450bf9c04f1b8d500838 (diff) |
CTAN sync 202112280300
Diffstat (limited to 'graphics/asymptote/base/plain_constants.asy')
-rw-r--r-- | graphics/asymptote/base/plain_constants.asy | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/graphics/asymptote/base/plain_constants.asy b/graphics/asymptote/base/plain_constants.asy index 136b354021..6cca1406cf 100644 --- a/graphics/asymptote/base/plain_constants.asy +++ b/graphics/asymptote/base/plain_constants.asy @@ -31,9 +31,9 @@ restricted pair WSW=unit(W+SW); restricted pair SSW=unit(S+SW); restricted pair SSE=unit(S+SE); restricted pair ESE=unit(E+SE); - + restricted real sqrtEpsilon=sqrt(realEpsilon); -restricted pair Align=sqrtEpsilon*NE; +restricted pair Align=sqrtEpsilon*NE; restricted int mantissaBits=ceil(-log(realEpsilon)/log(2))+1; restricted transform identity; @@ -108,7 +108,7 @@ void write(file file, string s="", bool3 b, suffix suffix=none) else write("default",suffix); } -void write(string s="", bool3 b, suffix suffix=endl) +void write(string s="", bool3 b, suffix suffix=endl) { write(stdout,s,b,suffix); } @@ -128,32 +128,32 @@ bool3 operator cast(bool b) return B; } -bool operator == (bool3 a, bool3 b) +bool operator == (bool3 a, bool3 b) { return a.set == b.set && (!a.set || (a.value == b.value)); } -bool operator != (bool3 a, bool3 b) +bool operator != (bool3 a, bool3 b) { return a.set != b.set || (a.set && (a.value != b.value)); } -bool operator == (bool3 a, bool b) +bool operator == (bool3 a, bool b) { return a.set && a.value == b; } -bool operator != (bool3 a, bool b) +bool operator != (bool3 a, bool b) { return !a.set || a.value != b; } -bool operator == (bool a, bool3 b) +bool operator == (bool a, bool3 b) { return b.set && b.value == a; } -bool operator != (bool a, bool3 b) +bool operator != (bool a, bool3 b) { return !b.set || b.value != a; } |