Lines Matching defs:distance
25 * A <code>TransitionPropagation</code> that propagates based on the distance to the side
26 * and, orthogonally, the distance to epicenter. If the transitioning View is visible in
108 float distance = distance(sceneRoot, viewCenterX, viewCenterY, epicenterX, epicenterY,
111 float distanceFraction = distance/maxDistance;
121 private int distance(View sceneRoot, int viewX, int viewY, int epicenterX, int epicenterY,
133 int distance = 0;
136 distance = right - viewX + Math.abs(epicenterY - viewY);
139 distance = bottom - viewY + Math.abs(epicenterX - viewX);
142 distance = viewX - left + Math.abs(epicenterY - viewY);
145 distance = viewY - top + Math.abs(epicenterX - viewX);
148 return distance;