work on raytracing
This commit is contained in:
28
geo/Ray3.h
Normal file
28
geo/Ray3.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef RAY3_H
|
||||
#define RAY3_H
|
||||
|
||||
#include "Point3.h"
|
||||
|
||||
struct Ray3 {
|
||||
|
||||
/** starting point */
|
||||
Point3 start;
|
||||
|
||||
/** ray's direction */
|
||||
Point3 dir;
|
||||
|
||||
public:
|
||||
|
||||
/** empty */
|
||||
Ray3() : start(), dir() {
|
||||
;
|
||||
}
|
||||
|
||||
/** ctor */
|
||||
Ray3(Point3 start, Point3 dir) : start(start), dir(dir) {
|
||||
;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
#endif // RAY3_H
|
||||
Reference in New Issue
Block a user