Commit 6d038b9c authored by David Kastrup's avatar David Kastrup

Use Interval::length rather than Interval::delta

Interval::delta assigns numeric meaning to empty intervals and is
an abuse of the Interval notion.
parent aa9e3983
......@@ -167,9 +167,9 @@ Lookup::filled_box (Box b)
Stencil
Lookup::round_filled_box (Box b, Real blotdiameter)
{
Real width = b.x ().delta ();
Real width = b.x ().length ();
blotdiameter = std::min (blotdiameter, width);
Real height = b.y ().delta ();
Real height = b.y ().length ();
blotdiameter = std::min (blotdiameter, height);
if (blotdiameter < 0.0)
......
......@@ -348,7 +348,7 @@ Stencil::stack (Axis a, Direction d, Stencil const &s, Real padding, Real mindis
if (is_empty (other_axis (a)))
{
Stencil toadd (s);
Real offset = d * first_extent.delta ();
Real offset = d * first_extent.length ();
toadd.translate_axis (offset, a);
toadd.add_stencil (*this);
expr_ = toadd.expr ();
......@@ -368,7 +368,7 @@ Stencil::stack (Axis a, Direction d, Stencil const &s, Real padding, Real mindis
expr_ = toadd.expr ();
dim_ = toadd.extent_box ();
dim_[a][-d] = first_extent[-d];
dim_[a][d] = first_extent[d] + d * next_extent.delta ();
dim_[a][d] = first_extent[d] + d * next_extent.length ();
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment