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
29 lines
315 B
C++
29 lines
315 B
C++
#ifndef GEO_RAY3_H
|
|
#define GEO_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 // GEO_RAY3_H
|