Question
3.1.2 2D Vector addition Write a function with comment blocks that performs 2D vector addition on two 2D vectors defined with polar coordinates. The function
3.1.2 2D Vector addition Write a function with comment blocks that performs 2D vector addition on two 2D vectors defined with polar coordinates. The function returns the 2D vector addition as a polar coordinate. This function must call rectPolarConv to perform any necessary rect polar conversion. Heres the prototype: void vectorAdd2D(double * mag1, double * ang1, double * mag2, double * ang2); mag1,mag2 are the magnitudes of the vectors 1 and 2 respectively. ang1,ang2 are the angles in degrees of the vectors 1 and 2 respectively. Their values are in the inclusive range of +/- 180 degrees The vector sum is returned in mag2, ang2. i.e mag2, ang2 are destroyed.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started