#include <stdexcept>
#include <cstdlib>
#include <iostream>
#include <sstream>
#include <string>
#include <limits>
#include <cmath>
#include "matrix.h"
#include "color.h"
#include "diffuse.h"
Include dependency graph for defines.h:
This graph shows which files directly or indirectly include this file:
Namespaces | |
namespace | asr |
Functions | |
static float | asr::uniform () |
Returns a uniform random number in the range [0,1). | |
static std::string | asr::int2str (int i) |
Helper function for converting an int to a string. | |
Variables | |
static float | asr::INF = std::numeric_limits<float>::infinity() |
Define positive infinity for floats. | |
static const float | asr::epsilon = 1e-6 |
Small value. | |
static Diffuse | asr::DEFAULT_MATERIAL = Diffuse(Color(0.7f,0.7f,0.7f)) |
Default material is a gray diffuse material. |