1. Barry Schwartz
  2. pure-fontdesign

Commits

Barry Schwartz  committed 092ac61

Recode similarly for acyclic piecewise.

  • Participants
  • Parent commits 3cdb88a
  • Branches default

Comments (0)

Files changed (1)

File fontdesign/piecewise.pure

View file
   point pwise@(Piecewise p::list cyclic::int) t
   = point pwise (floatmod t (#p)) if cyclic && (t < 0 || #p <= t);
   = point pwise 0 if ~cyclic && t < 0;
-  = point pwise (#p) if ~cyclic && #p < t;
-  = point (last p) 1.0 if t == #p;
+  = point (last p) 1.0 if ~cyclic && #p <= t;
   = point (p!(int i)) q
    when
      i = floor t;