Lines Matching refs:matrix
356 static void transformPoint(const float matrix[9], float x, float y, float *outX, float *outY) {
358 float newX = matrix[0] * x + matrix[1] * y + matrix[2];
359 float newY = matrix[3] * x + matrix[4] * y + matrix[5];
360 float newZ = matrix[6] * x + matrix[7] * y + matrix[8];
368 static float transformAngle(const float matrix[9], float angleRadians,
374 transformPoint(matrix, x, y, &x, &y);
388 void MotionEvent::transform(const float matrix[9]) {
398 transformPoint(matrix, rawX + oldXOffset, rawY + oldYOffset, &newX, &newY);
402 // Determine how the origin is transformed by the matrix so that we
405 transformPoint(matrix, 0, 0, &originX, &originY);
413 transformPoint(matrix, x, y, &x, &y);
419 transformAngle(matrix, orientation, originX, originY));