29 lines
303 B
C++
29 lines
303 B
C++
#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
|