-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUtil.h
More file actions
31 lines (25 loc) · 753 Bytes
/
Util.h
File metadata and controls
31 lines (25 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef __UTIL_H_
#define __UTIL_H_
#include "Structs.h"
#include "Color.h"
#include "Vector.h"
#include "Object.h"
#include "Source.h"
#include <fstream>
#include <sstream>
#include <math.h>
#include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <limits>
#include <ctime>
#include <stdlib.h>
#include <stdio.h>
class Util{
public:
static Color getColorAt(Vector intersectionPosition, Vector intersectionRayDirection, std::vector<Object*> sceneObjects, int indexOfWinningObject, std::vector<Source*> lightSources, double accuracy, double ambientLight);
static int winningObjectIndex(std::vector<double> object_intersections);
static void savebmp(const char *filename, int w, int h, int dpi, RGBType *data);
};
#endif