Lines Matching refs:slope
1196 * of the array is the inverse slope (run/rise) of the caret, measured
1204 * @return a two-element array containing the position and slope of
1632 * This creates a line along the slope of the caret intersecting the
1643 double slope = info[1];
1657 if (slope >= 0) {
1666 y0 = pos + x0 * slope;
1667 y1 = pos + x1 * slope;
1673 if (slope <= 0 || y1 <= top) {
1680 x2 = x1 + (top-y1)/slope;
1687 if (slope >= 0 || y0 >= bottom) {
1694 x2 = x0 + (bottom-x1)/slope;
1702 if (slope >= 0) {
1711 x0 = pos - y0 * slope;
1712 x1 = pos - y1 * slope;
1718 if (slope <= 0 || x1 <= left) {
1725 y2 = y1 - (left-x1)/slope;
1732 if (slope >= 0 || x0 >= right) {
1739 y2 = y0 - (right-x0)/slope;