00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #define ONE 4096
00011
00012 typedef struct {
00013 short m[3][3];
00014 } Matrix;
00015
00016 typedef struct {
00017 long vx, vy, vz;
00018 } Vector;
00019
00020 extern void init_Vector(Vector *p);
00021 extern Vector *new_Vector(int num);
00022 extern void del_Vector(Vector *p, int num);
00023 extern void print_Vector(Vector *p, int num, char *s);
00024
00025 typedef struct {
00026 short vx, vy, vz;
00027 } SVector;
00028
00029 extern void init_SVector(SVector *p);
00030 extern SVector *new_SVector(int num);
00031 extern void del_SVector(SVector *p, int num);
00032 extern void print_SVector(SVector *p, int num, char *s);
00033
00034 extern void fget_svector(SVector *sv, FILE *fp);
00035 extern void fget_coord(Matrix *m, Vector *tr, SVector *rot, FILE *fp);