Source: raytracer/types.h


Annotated List
Files
Globals
Hierarchy
Index
/* *************************************************************************
                            types.h  -  description
                             -------------------
    begin                : Wed Oct 16 2002
    copyright            : (C) 2002 by Micha Riser
    email                : mriser@gmx.net
 ************************************************************************* */

/* *************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ************************************************************************* */

#ifndef TYPES_H
#define TYPES_H

//#include<limits>    // gcc 2.95 does not have limits

/**Double precision floating point type. Used where high precision
  *is needed.
  */
typedef double DBL;

/**Single precison floating point type.
  */
typedef float FLT;

/**Colour component type.
  */
typedef float CLR;

static const DBL PI = 3.1415926535897932384626;
//static const DBL DBL_INFINITY = std::numeric_limits<DBL>::max();
static const DBL DBL_INFINITY = 1.79769e308;

#endif

Generated by: micha@laptop on Thu Oct 24 20:25:24 2002, using kdoc 2.0a53.