1 #ifndef RAYMARCHING_ALGEBRA_H
2 #define RAYMARCHING_ALGEBRA_H
16 Eigen::Vector3d begin;
17 Eigen::Vector3d direction;
21 Line(Eigen::Vector3d direction, Eigen::Vector3d begin)
22 : begin(std::move(begin)), direction(std::move(direction)), _t(0), _dir_norm(direction.norm()) {}
24 void moveBy(
double distance);
25 void reset() { _t = 0; }
26 [[nodiscard]] Eigen::Vector3d getVec()
const;
27 [[nodiscard]] Eigen::Vector3d getDirection()
const {
return direction; }
Marching Ray implementation.
Definition: algebra.h:14
Namespace containing all tools implemented within RayMarching package.
Definition: algebra.h:9