SPAOP
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Macros
Source.h File Reference
#include <iostream>
#include <sstream>
#include <iomanip>
#include <stdint.h>
#include "Colours.h"
#include "WonderHeader.h"

Go to the source code of this file.

Classes

class  wonder::Source
 A class for objects representing a WONDER source with all its properties. More...
 

Namespaces

 wonder
 A namespace for library- and system-independent WONDER-related classes.
 

Macros

#define ANGLE_MAX   360.0
 
#define ANGLE_MIN   0.0
 
#define NORMALIZE(min, max, val)   ((val)-(min)) / ((max)-(min))
 
#define DENORMALIZE(min, max, val)   ((val) * ((max)-(min))) + (min)
 
#define SATURATE(x)   ((x) < 0.0) ? 0.0 : (((x) > 1.0) ? 1.0 : (x))
 
#define COORD_NORM(x)   NORMALIZE(COORD_MIN, COORD_MAX, (x))
 
#define COORD_DENORM(x)   DENORMALIZE(COORD_MIN, COORD_MAX, (x))
 

Macro Definition Documentation

#define ANGLE_MAX   360.0
#define ANGLE_MIN   0.0
#define COORD_DENORM (   x)    DENORMALIZE(COORD_MIN, COORD_MAX, (x))
#define COORD_NORM (   x)    NORMALIZE(COORD_MIN, COORD_MAX, (x))
#define DENORMALIZE (   min,
  max,
  val 
)    ((val) * ((max)-(min))) + (min)
#define NORMALIZE (   min,
  max,
  val 
)    ((val)-(min)) / ((max)-(min))
#define SATURATE (   x)    ((x) < 0.0) ? 0.0 : (((x) > 1.0) ? 1.0 : (x))