mirror of
https://github.com/vonhyou/ray-tracer-comp371.git
synced 2025-06-08 07:22:01 +00:00
21 lines
314 B
C++
21 lines
314 B
C++
#ifndef RAY_H_
|
|
#define RAY_H_
|
|
|
|
#include <Eigen/Core>
|
|
|
|
using Eigen::Vector3f;
|
|
|
|
class Ray {
|
|
public:
|
|
Ray(const Vector3f &o, const Vector3f &d) : origin_(o), direction_(d) {}
|
|
|
|
private:
|
|
Vector3f origin_;
|
|
Vector3f direction_;
|
|
|
|
public:
|
|
Vector3f origin() const;
|
|
Vector3f direction() const;
|
|
};
|
|
|
|
#endif // !RAY_H_
|