Home
last modified time | relevance | path

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

/aosp14/frameworks/base/core/java/android/transition/
H A DExplode.java145 double xVector = centerX - focalX; in calculateOut() local
148 if (xVector == 0 && yVector == 0) { in calculateOut()
150 xVector = (Math.random() * 2) - 1; in calculateOut()
153 double vectorSize = Math.hypot(xVector, yVector); in calculateOut()
154 xVector /= vectorSize; in calculateOut()
160 outVector[0] = (int) Math.round(maxDistance * xVector); in calculateOut()