When multiple forces with different magnitudes and directions act on a
single point or object, all these forces can be combined into one force which
is the resultant force.
Each force with a direction and a magnitude can be represented using 2 components,
each found on either the X axis or the Y axis, using a number of formulas, these two
components can be calculated:
X-axis component = Magnitude × cos(theta)
Y-axis component = Magnitude × sin(theta)
For a system of forces, if we calcualte the X and Y components of all the forces, the result
will be two forces, one with its direction is on the X-axis, and the other with its direction on
the Y-axis, using these two forces and the pythagorean theorem, the force resultant can be calculated:
Resultant Force = sqrt(X ^ 2 + Y ^ 2)
The direction of the resultant force can be calculated using the following formula:
Resultant Drection = arctan(Y ÷ X)