2 #ifndef GRAMODS_GRAPHICS_INTERSECTIONLINE
3 #define GRAMODS_GRAPHICS_INTERSECTIONLINE
5 #include <gmGraphics/config.hh>
10 BEGIN_NAMESPACE_GMGRAPHICS;
32 static IntersectionLine infiniteRay(Eigen::Vector3f p0, Eigen::Vector3f dir);
43 inline Eigen::Vector3f
getPosition(
float ratio) {
return p0 + dir * ratio; }
45 const Eigen::Vector3f p0;
46 const Eigen::Vector3f dir;
47 const Eigen::Vector3f dir_inv;
48 const std::optional<float> start;
49 const std::optional<float> stop;
52 END_NAMESPACE_GMGRAPHICS;
Line for intersection with ray or segment.
Definition: IntersectionLine.hh:15
Eigen::Vector3f getPosition(float ratio)
Returns the position on the line that corresponds to the specified ratio.
Definition: IntersectionLine.hh:43