mirror of
https://github.com/vonhyou/ray-tracer-comp371.git
synced 2025-06-08 15:31:59 +00:00
reformat ray and hitrecord
This commit is contained in:
parent
08cbf7733f
commit
9e9d7351bd
6 changed files with 25 additions and 25 deletions
10
src/Ray.h
10
src/Ray.h
|
@ -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_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue