#define scr_lengthdir_x //returns the x-component of the vector determined by the indicated length and directions //argument0=length //argument2=angle1 //argument1=angle2 (must be between -89 and 89) if (argument2>89) argument2=89; if (argument2<-89) argument2=-89; return lengthdir_x(lengthdir_x(argument0,argument2),argument1); #define scr_lengthdir_y //returns the y-component of the vector determined by the indicated length and directions //argument0=length //argument2=angle1 //argument1=angle2 (must be between -89 and 89) if (argument2>89) argument2=89; if (argument2<-89) argument2=-89; return lengthdir_y(lengthdir_x(argument0,argument2),argument1); #define scr_lengthdir_z //returns the z-component of the vector determined by the indicated length and directions //argument0=length //argument2=angle1 (not really necessary) //argument1=angle2 (must be between -89 and 89) if (argument2>89) argument2=89; if (argument2<-89) argument2=-89; return lengthdir_y(argument0,argument2);