I was thinking that you could make a vector data type:
struct vector {
float x;
float y;
float z;
};
struct vector a;
struct vector b;
struct vector c;
int main() {
c=rot(a,b,1);
a=rot(b,c,2);
b=rot(c,a,3);
return 0;
};
vector rot(struct vector fist_vec , struct vector second_vec , int position) {
/* Do something to the two vectors*/
struct vector return_vec;
return_vec.x = first_vec.x * second_vec.x / position;
return return_vec;
};
I can't really see what you are trying to do though :-/ (as demonstrated by my random example). Whatever, data structures and function will make you code far easier to read and optimise than procedures and arrays.
Blitz Basic supports data types and functions, use that instead of AMOS.