Baruch Spinoza said this quote

I shall treat the nature and power of the Affects, and the power of the Mind over them, by the same Method by which, in the preceding parts, I treated God and the Mind, and I shall consider human actions and appetites just as if it were a Question of lines, planes, and bodies.