|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T z
Length: 557 (0x22d) Types: TextFile Names: »zoom.c«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987 └─⟦this⟧ »EUUGD18/General/Gb/zoom.c«
/* * Galactic Bloodshed (Robert Chansky, smq@ucscb.ucsc.edu) * zoom.c -- zoom in or out for orbit display */ #include "vars.h" zoom(APcount, argn,args) int APcount; int argn; char args[MAXARGS][COMMANDSIZE]; { float num,denom; if (argn!=2) { printf("usage: zoom (amount) or zoom (x/y)\n"); } else { if (sscanf(args[1], "%f/%f", &num, &denom) == 2) { /* num/denom format */ Dir.zoom = num / denom; } else { /* one number */ Dir.zoom = num; } } printf("Zoom value %g, lastx = %g, lasty = %g.\n",Dir.zoom,Dir.lastx,Dir.lasty); }