Home
last modified time | relevance | path

Searched refs:horizPoint (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/core/java/com/android/internal/policy/
DPipSnapAlgorithm.java135 Point horizPoint = new Point(); in getEdgeIntersect() local
143 horizPoint.y = velY > 0 ? movementBounds.bottom : movementBounds.top; in getEdgeIntersect()
145 horizPoint.x = findX(slope, yIntercept, horizPoint.y); in getEdgeIntersect()
162 final int endPoint = isLandscape ? horizPoint.y : horizPoint.x; in getEdgeIntersect()
173 horizPoint.x = stackBounds.left + (velX > 0 ? distance : -distance); in getEdgeIntersect()
175 horizPoint.y = stackBounds.top + (velY > 0 ? distance : -distance); in getEdgeIntersect()
177 return horizPoint; in getEdgeIntersect()
182 final double distanceHoriz = Math.hypot(horizPoint.x - x, horizPoint.y - y); in getEdgeIntersect()
185 return horizPoint; in getEdgeIntersect()
191 return Math.abs(distanceVert) > Math.abs(distanceHoriz) ? horizPoint : vertPoint; in getEdgeIntersect()