Help language development. Donate to The Perl Foundation

ScaleVec cpan:SAMGWISE last updated on 2020-01-06

lib/ScaleVec/Scale.pm6
use v6;

unit role ScaleVec::Scale;

method step(Numeric $step) returns Numeric { ... }

method interval(Numeric $a, Numeric $b) returns Numeric
#= Returns the exterior interval of the intervalic space between A and B.
{
  self.step($b) - self.step($a);
}