reformat ray and hitrecord

This commit is contained in:
Shuo Feng 2024-03-14 18:43:28 -04:00
parent 08cbf7733f
commit 9e9d7351bd
Signed by: sfeng
GPG key ID: 1E83AE6CD1C037B1
6 changed files with 25 additions and 25 deletions

View file

@ -7,15 +7,15 @@ using Eigen::Vector3f;
class Ray {
public:
Ray(const Vector3f &o, const Vector3f &d) : origin(o), direction(d) {}
Ray(const Vector3f &o, const Vector3f &d) : origin_(o), direction_(d) {}
private:
Vector3f origin;
Vector3f direction;
Vector3f origin_;
Vector3f direction_;
public:
Vector3f getOrigin() const;
Vector3f getDirection() const;
Vector3f origin() const;
Vector3f direction() const;
};
#endif // !RAY_H_