Question: in c language. finish the fillCVector function. Also, add the following function prototypes to your header file // adds two cartesian vectors together // when

in c language.

finish the fillCVector function. Also, add the following function prototypes to your header file

// adds two cartesian vectors together // when adding cartesian vectors: // the new x coordinate is the SUM of the individual x coordinates // the new y coordinate is the SUM of the individual y coordinates struct cVector addCVector( struct cVector vec1, struct cVector vec2 ); // adds two polar vectors together // hint, it is easier to add cartesian vectors... struct pVector addPVector( struct pVector vec1, struct pVector vec2 ); // take the DOT product of two cartesian vectors // To get the dot product // the new x coordinate is the PRODUCT of the individual x coordinates // the new y coordinate is the PRODUCT of the individual y coordinates struct cVector dotCVector( struct cVector vec1, struct cVector vec2 ); // take the DOT product of two polar vectors // hint, it is easier to dot product cartesian vectors... struct pVector dotPVector( struct pVector vec1, struct pVector vec2 );

Then implement these four functions.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!