-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdisc.h
More file actions
38 lines (24 loc) · 667 Bytes
/
disc.h
File metadata and controls
38 lines (24 loc) · 667 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
31
32
33
34
35
36
37
38
#ifndef __DISC_H
#define __DISC_H
#include "object.h"
#include "point3d.h"
#include "vector3d.h"
#include "pixel.h"
class Disc: public Object
{
public:
Disc();
~Disc();
inline float get_r();
inline Vector3d get_n();
inline void set_radius(float r);
inline void set_n(const Vector3d n);
private:
float _radius;
Vector3d _n; // normal
};
inline float Disc::get_r(){return _radius;}
inline Vector3d Disc::get_n(){return _n;}
inline void Disc::set_radius(float r){_radius = r;}
inline void Disc::set_n(const Vector3d n){_n = n;}
#endif // __DISC_H