/******************************** Author: Sravanthi Kota Venkata ********************************/ #include #include #include "localization.h" F2D* eul2quat(F2D* angle) { F2D *ret; F2D *x, *y, *z; int k, i, j; int rows, cols; rows = angle->height; cols = angle->width; x = fDeepCopyRange(angle, 0, angle->height, 0, 1); y = fDeepCopyRange(angle, 0, angle->height, 1, 1); z = fDeepCopyRange(angle, 0, angle->height, 2, 1); ret = fSetArray(x->height, 4, 0); for(i=0; i