Components along a line with the dot product

The part of a force along any line is its dot product with a unit vector along that line, and the same product gives the angle between a force and a member.

From Statics.