Lines Matching full:matrix
422 static void transformPoint(const float matrix[9], float x, float y, float *outX, float *outY) {
424 float newX = matrix[0] * x + matrix[1] * y + matrix[2];
425 float newY = matrix[3] * x + matrix[4] * y + matrix[5];
426 float newZ = matrix[6] * x + matrix[7] * y + matrix[8];
434 static float transformAngle(const float matrix[9], float angleRadians,
440 transformPoint(matrix, x, y, &x, &y);
454 void MotionEvent::transform(const float matrix[9]) {
464 transformPoint(matrix, rawX + oldXOffset, rawY + oldYOffset, &newX, &newY);
468 // Determine how the origin is transformed by the matrix so that we
471 transformPoint(matrix, 0, 0, &originX, &originY);
479 transformPoint(matrix, x, y, &x, &y);
485 transformAngle(matrix, orientation, originX, originY));