-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathObject.hpp
45 lines (39 loc) · 845 Bytes
/
Object.hpp
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//
// Object.hpp
// PI_shadow_mirror
//
// Created by ललित सिंह on 30/11/2016.
// Copyright © 2016 ललित सिंह. All rights reserved.
//
#ifndef Object_hpp
#define Object_hpp
#include <stdio.h>
#include "mypoint3f.hpp"
#include "Line.hpp"
#include "vect.hpp"
#include "Header.hpp"
#include <vector>
#include "glm.hpp"
class Object {
public:
intersectionPoint shootRay(Line);
};
class Sphere: public Object{
private:
public:
mypoint3f center;
double radius;
Sphere();
Sphere(double, mypoint3f);
mypoint3f getCenter();
intersectionPoint shootRay(Line);
};
class TriangularMesh: public Object{
private:
std::vector<mypoint3f> vertices;
std::vector<mypoint3f> normals;
public:
intersectionPoint shootRay(Line);
TriangularMesh();
};
#endif /* Object_hpp */