/*
 * File: glibrary.h
 * Last modified on Mon Jul 25 10:21:33 1994 by eroberts
 * -----------------------------------------------------
 * This interface exports several simple, low-level functions that are
 * used in various other parts of the graphics package implementation.
 */

#ifndef _glibrary_h
#define _glibrary_h

/*
 * Functions: Radians, Degrees
 * Usage: radians = Radians(degrees);
 *        degrees = Degrees(radians);
 * ----------------------------------
 * These functions convert back and forth between degrees and radians.
 */

double Radians(double degrees);
double Degrees(double radians);

/*
 * Function: Round
 * Usage: n = Round(x);
 * --------------------
 * This function rounds a double to the nearest integer.
 */

int Round(double x);

/*
 * Functions: Min, Max
 * Usage: min = Min(x, y);
 *        max = Max(x, y);
 * -----------------------
 * These functions find the minimum and maximum of two integers.
 */

int Min(int x, int y);
int Max(int x, int y);

/*
 * Functions: MinF, MaxF
 * Usage: min = MinF(x, y);
 *        max = MaxF(x, y);
 * ------------------------
 * These functions find the minimum and maximum of two doubles.
 */

double MinF(double x, double y);
double MaxF(double x, double y);

#endif
