Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/gesture/
DGestureUtils.java537 private static float[] computeOrientation(float[][] covarianceMatrix) { in computeOrientation() argument
539 if (covarianceMatrix[0][1] == 0 || covarianceMatrix[1][0] == 0) { in computeOrientation()
544 float a = -covarianceMatrix[0][0] - covarianceMatrix[1][1]; in computeOrientation()
545 float b = covarianceMatrix[0][0] * covarianceMatrix[1][1] - covarianceMatrix[0][1] in computeOrientation()
546 * covarianceMatrix[1][0]; in computeOrientation()
557 targetVector[1] = (lambda - covarianceMatrix[0][0]) / covarianceMatrix[0][1]; in computeOrientation()