worked on 2D/3D raytracing
adjusted BVH improved 2D/3D BVH new bounding volumes new test cases renamed some test-cases for grouping reasons made GPC header-only using slight adjustments
This commit is contained in:
29
geo/Ray2.h
Normal file
29
geo/Ray2.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#ifndef GEO_RAY2_H
|
||||
#define GEO_RAY2_H
|
||||
|
||||
|
||||
#include "Point2.h"
|
||||
|
||||
struct Ray2 {
|
||||
|
||||
/** starting point */
|
||||
Point2 start;
|
||||
|
||||
/** ray's direction */
|
||||
Point2 dir;
|
||||
|
||||
public:
|
||||
|
||||
/** empty */
|
||||
Ray2() : start(), dir() {
|
||||
;
|
||||
}
|
||||
|
||||
/** ctor */
|
||||
Ray2(Point2 start, Point2 dir) : start(start), dir(dir) {
|
||||
;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
#endif // GEO_RAY2_H
|
||||
Reference in New Issue
Block a user