15 lines
300 B
C
15 lines
300 B
C
#ifndef RAY_H
|
|
#define RAY_H
|
|
|
|
#include <Eigen/Core>
|
|
|
|
struct Ray
|
|
{
|
|
Eigen::Vector3d origin;
|
|
// Not necessarily unit-length direction vector. (It is often useful to have
|
|
// non-unit length so that origin+t*direction lands on a special point when
|
|
// t=1.)
|
|
Eigen::Vector3d direction;
|
|
};
|
|
|
|
#endif
|