Searched refs:scrollVector (Results 1 – 2 of 2) sorted by relevance
232 PointF scrollVector = computeScrollVectorForPosition(getTargetPosition()); in updateActionForInterimTarget() local233 if (scrollVector == null || (scrollVector.x == 0 && scrollVector.y == 0)) { in updateActionForInterimTarget()239 normalize(scrollVector); in updateActionForInterimTarget()240 mTargetVector = scrollVector; in updateActionForInterimTarget()242 mInterimTargetDx = (int) (TARGET_SEEK_SCROLL_DISTANCE_PX * scrollVector.x); in updateActionForInterimTarget()243 mInterimTargetDy = (int) (TARGET_SEEK_SCROLL_DISTANCE_PX * scrollVector.y); in updateActionForInterimTarget()
10907 protected void normalize(PointF scrollVector) { in normalize() argument10908 final double magnitude = Math.sqrt(scrollVector.x * scrollVector.x + scrollVector.y in normalize()10909 * scrollVector.y); in normalize()10910 scrollVector.x /= magnitude; in normalize()10911 scrollVector.y /= magnitude; in normalize()