The Zalesak slotted disk benchmark – the exact solution.
The Zalesak slotted disk benchmark – the exact solution
}
}
protected:
};
if (d0 >= 0) {
if (fabs(xm-
x0) <
w/2 && ym <
y2) {
return min(d2,d3);
} else {
return min(d2,min(d3,d0));
}
}
else {
return max(d0,d1);
return max(d0,d1);
} else {
return min(d1,min(d2,d3));
}
} else {
return max(d0,-d1);
return max (d0,-d2);
} else {
return max(d3,d0);
}
}
}
}
Float arc32 = (2*pi - theta)*
r;
return d24 + d45 + d53 + arc32;
}
protected:
};
inline
: t (t1),
x2 (x0 - w/2),
y2 (y0 - sqrt(r*r - (w/2)*(w/2))),
x3 (x0 + w/2),
y3 (y2),
x4 (x2),
y4 (y0 + l - r),
x5 (x3),
y5 (y4)
{}
};
see the Float page for the full documentation
see the point page for the full documentation
Float operator()(const point &x) const
static constexpr Float x0
static constexpr Float y0
static constexpr Float xc
static constexpr Float yc
Float operator()(const point &x) const
point operator()(const point &x) const
static constexpr Float xc
static constexpr Float yc