work on raytracing

This commit is contained in:
2017-09-06 08:34:20 +02:00
parent c21925e86f
commit e4cd9c6b8d
32 changed files with 2790 additions and 3 deletions

View File

@@ -1,4 +1,24 @@
#ifndef RAY2_H
#define RAY2_H
#include "../../../geo/Point2.h"
struct Ray2 {
/** starting position */
Point2 start;
/** ray direction */
Point2 dir;
/** empty ctor */
Ray2() {;}
/** ctor */
Ray2(const Point2 start, const Point2 dir) : start(start), dir(dir.normalized()) {
;
}
};
#endif // RAY2_H