Lines Matching full:peak
45 double start = tent.minimum, peak = tent.middle, end = tent.maximum; in supportScalar() local
47 if (unlikely (start > peak || peak > end)) in supportScalar()
49 if (unlikely (start < 0 && end > 0 && peak != 0)) in supportScalar()
52 if (peak == 0 || coord == peak) in supportScalar()
59 if (coord < peak) in supportScalar()
60 return (coord - start) / (peak - start); in supportScalar()
62 return (end - coord) / (end - peak); in supportScalar()
72 double peak = tent.middle; in _solve() local
75 // Mirror the problem such that axisDef <= peak in _solve()
76 if (axisDef > peak) in _solve()
87 // axisDef <= peak in _solve()
91 * peak in _solve()
100 if (axisMax <= lower && axisMax < peak) in _solve()
103 /* case 2: Only the peak and outermost bound fall outside the new limit; in _solve()
104 * we keep the deltaset, update peak and outermost bound and scale deltas in _solve()
108 * |peak in _solve()
123 * o peak in _solve()
131 if (axisMax < peak) in _solve()
144 // lower <= axisDef <= peak <= axisMax in _solve()
157 * | peak | in _solve()
176 double crossing = peak + (1 - gain) * (upper - peak); in _solve()
178 Triple loc{hb_max (lower, axisDef), peak, crossing}; in _solve()
202 * | peak | in _solve()
218 // A tent's peak cannot fall on axis default. Nudge it. in _solve()
237 // Special-case if peak is at axisMax. in _solve()
238 if (axisMax == peak) in _solve()
239 upper = peak; in _solve()
245 * peak in _solve()
257 double newUpper = peak + (1 - gain) * (upper - peak); in _solve()
269 assert (peak < upper); in _solve()
272 Triple loc {hb_max (axisDef, lower), peak, upper}; in _solve()
282 * | peak | in _solve()
296 Triple loc1 {hb_max (axisDef, lower), peak, axisMax}; in _solve()
299 Triple loc2 {peak, axisMax, axisMax}; in _solve()
304 if (peak < axisMax) in _solve()
313 * | |peak in _solve()
336 * | |peak in _solve()
350 // A tent's peak cannot fall on axis default. Nudge it. in _solve()