This repository has been archived on 2024-12-30. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
2024CG-project-render/include/Ray.h
github-classroom[bot] 6eef377959
Initial commit
2024-10-11 10:27:35 +00:00

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