The ______ and _______ are used to calculate magnitude and direction of a resultant vector.