+void update(long tmsec, float dt)
+{
+ int i;
+ cgm_vec3 apt0, apt1;
+ float theta, phi, brot;
+
+ /*
+ cgm_mrotation_quat(ginner_xform, &grot);
+ cgm_mtranslate(ginner_xform, gmove.x, gmove.y, gmove.z);
+ */
+
+ theta = cgm_deg_to_rad(grot_theta);
+ phi = cgm_deg_to_rad(grot_phi);
+
+ cgm_mrotation_euler(ginner_xform, phi, theta, 0, CGM_EULER_XYZ);
+ cgm_mrotation_euler(gouter_xform, phi, 0, 0, CGM_EULER_XYZ);
+
+ for(i=0; i<4; i++) {
+ apt0 = ganchor[i];
+ cgm_vmul_m4v3(&apt0, ginner_xform);
+
+ dbgvec[i] = apt0;
+ }
+}
+