parent
5da829eaf5
commit
6622e04aa1
|
@ -438,16 +438,9 @@ HB_INTERNAL result_t rebase_tent (Triple tent, Triple axisLimit);
|
||||||
result_t
|
result_t
|
||||||
rebase_tent (Triple tent, Triple axisLimit)
|
rebase_tent (Triple tent, Triple axisLimit)
|
||||||
{
|
{
|
||||||
float axisMin = axisLimit.minimum;
|
assert (-1.f <= axisLimit.minimum && axisLimit.minimum <= axisLimit.middle && axisLimit.middle <= axisLimit.maximum && axisLimit.maximum <= +1.f);
|
||||||
float axisDef = axisLimit.middle;
|
assert (-2.f <= tent.minimum && tent.minimum <= tent.middle && tent.middle <= tent.maximum && tent.maximum <= +2.f);
|
||||||
float axisMax = axisLimit.maximum;
|
assert (tent.middle != 0.f);
|
||||||
float lower = tent.minimum;
|
|
||||||
float peak = tent.middle;
|
|
||||||
float upper = tent.maximum;
|
|
||||||
|
|
||||||
assert (-1.f <= axisMin && axisMin <= axisDef && axisDef <= axisMax && axisMax <= +1.f);
|
|
||||||
assert (-2.f <= lower && lower <= peak && peak <= upper && upper <= +2.f);
|
|
||||||
assert (peak != 0.f);
|
|
||||||
|
|
||||||
result_t sols = _solve (tent, axisLimit);
|
result_t sols = _solve (tent, axisLimit);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue