DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T z

⟦1c4e25063⟧ TextFile

    Length: 557 (0x22d)
    Types: TextFile
    Names: »zoom.c«

Derivation

└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
    └─⟦this⟧ »EUUGD18/General/Gb/zoom.c« 

TextFile


/*
 * 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);

}