void M_LineWrite3(AG_DataSource *ds, M_Line3 *L) { M_WriteVector3(ds, &L->p); M_WriteVector3(ds, &L->d); M_WriteReal(ds, L->t); }
void M_LineWrite2(AG_DataSource *ds, M_Line2 *L) { M_WriteVector2(ds, &L->p); M_WriteVector2(ds, &L->d); M_WriteReal(ds, L->t); }
void M_WriteVector_FPU(AG_DataSource *buf, const M_Vector *v) { Uint i; AG_WriteUint32(buf, (Uint)MVECSIZE(v)); for (i = 0; i < MVECSIZE(v); i++) M_WriteReal(buf, v->v[i]); }
void M_CircleWrite3(AG_DataSource *ds, M_Circle3 *C) { M_WriteVector3(ds, &C->p); M_WriteReal(ds, C->r); }
void M_CircleWrite2(AG_DataSource *ds, M_Circle2 *C) { M_WriteVector2(ds, &C->p); M_WriteReal(ds, C->r); }