#include "vect2.h"
#include <stdlib.h>
#include <math.h>
Go to the source code of this file.
Functions | |
void | vect2_pol2cart (vect2_pol *vp, vect2_cart *vc) |
Convert a polar vector to a cartesian one. | |
void | vect2_cart2pol (vect2_cart *vc, vect2_pol *vp) |
Convert a cartesian vector to a polar one. | |
void | vect2_add_pol (vect2_pol *vp1, vect2_pol *vp2, vect2_pol *vresult) |
Add 2 polar vectors and return the result. | |
void | vect2_add_cart (vect2_cart *vc1, vect2_cart *vc2, vect2_cart *vresult) |
Add 2 cartesian vectors and return the result. | |
void | vect2_sub_pol (vect2_pol *vp1, vect2_pol *vp2, vect2_pol *vresult) |
Substract 2 polar vectors and return the result. | |
void | vect2_sub_cart (vect2_cart *vc1, vect2_cart *vc2, vect2_cart *vresult) |
Substract 2 cartesian vectors and return the result. | |
void | vect2_scale_cart (vect2_cart *vc1, Real alpha, vect2_cart *vresult) |
Multiply a cartesian vector by a scalar and return the result. | |
void | vect2_scale_pol (vect2_pol *vp1, Real alpha, vect2_pol *vresult) |
Multiply a polar vector by a scalar and return the result. |