The statistical tool that primarily notices trends between two variables is the correlation coefficient. It quantifies the strength and direction of a linear relationship between the two variables, as you described.
The Pythagorean theorem is a mathematical principle related to right triangles, and the t-test is a statistical test used to compare means between groups, but neither of these directly measures the relationship between two variables in the same way the correlation coefficient does.