Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/gesture/
DGestureUtils.java407 static float squaredEuclideanDistance(float[] vector1, float[] vector2) { in squaredEuclideanDistance() argument
409 int size = vector1.length; in squaredEuclideanDistance()
411 float difference = vector1[i] - vector2[i]; in squaredEuclideanDistance()
424 static float cosineDistance(float[] vector1, float[] vector2) { in cosineDistance() argument
426 int len = vector1.length; in cosineDistance()
428 sum += vector1[i] * vector2[i]; in cosineDistance()
441 static float minimumCosineDistance(float[] vector1, float[] vector2, int numOrientations) { in minimumCosineDistance() argument
442 final int len = vector1.length; in minimumCosineDistance()
446 a += vector1[i] * vector2[i] + vector1[i + 1] * vector2[i + 1]; in minimumCosineDistance()
447 b += vector1[i] * vector2[i + 1] - vector1[i + 1] * vector2[i]; in minimumCosineDistance()
/frameworks/base/libs/hwui/
DShadowTessellator.cpp164 int ShadowTessellator::getExtraVertexNumber(const Vector2& vector1, in getExtraVertexNumber() argument
167 if (vector1.lengthSquared() == 0 || vector2.lengthSquared() == 0) { in getExtraVertexNumber()
176 float dotProduct = vector1.dot(vector2); in getExtraVertexNumber()
DShadowTessellator.h87 static int getExtraVertexNumber(const Vector2& vector1, const Vector2& vector2,
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
DBaseCluster.java104 private double computeDistance(double[] vector1, double[] vector2) { in computeDistance() argument
107 product += vector1[i] * vector2[i]; in computeDistance()