7#include <Common/primitive_type.h>
151 :
Ray(origin, direction, minT, maxT,
Time{})
155 :
Ray(origin, direction, 0,
std::numeric_limits<real>::max())
159 :
Ray(origin, direction, 0,
std::numeric_limits<real>::max(), time)
216 return m_segment.
getDir();
Represents a ray in space.
Definition Ray.h:21
const Time & getTime() const
Get the associated time of this ray.
Definition Ray.h:204
const math::Vector3R & getOrigin() const
Definition Ray.h:209
void setRange(real minT, real maxT)
Set the parametric range where the ray extends.
Definition Ray.h:179
void setMaxT(real t)
Set the parametric distance where the ray ends.
Definition Ray.h:174
void setOrigin(const math::Vector3R &pos)
Set the origin of the ray.
Definition Ray.h:184
const math::Vector3R & getDir() const
Definition Ray.h:214
void setSegment(const math::TLineSegment< real > &segment)
Definition Ray.h:194
void setMinT(real t)
Set the parametric distance where the ray starts.
Definition Ray.h:169
void setDir(const math::Vector3R &dir)
Set the direction vector of the ray.
Definition Ray.h:189
real getMinT() const
Definition Ray.h:219
math::Vector3R getHead() const
Get the coordinates on maximum parametric distance.
Definition Ray.h:239
void setTime(const Time &time)
Set the associated time of this ray.
Definition Ray.h:199
Ray & reverse()
Points this ray in opposite direction.
Definition Ray.h:162
Ray()=default
A ray with unspecified state.
const math::TLineSegment< real > & getSegment() const
Definition Ray.h:229
real getMaxT() const
Definition Ray.h:224
math::Vector3R getTail() const
Get the coordinates on minimum parametric distance.
Definition Ray.h:234
Represents a line segment in space.
Definition TLineSegment.h:25
void setMinT(T t)
Set the parametric distance where the segment starts.
Definition TLineSegment.ipp:43
TVector3< T > getHead() const
Get the coordinates on maximum parametric distance.
Definition TLineSegment.ipp:118
void setMaxT(T t)
Set the parametric distance where the segment ends.
Definition TLineSegment.ipp:49
T getMinT() const
Definition TLineSegment.ipp:94
void setOrigin(const TVector3< T > &pos)
Set the origin of the line.
Definition TLineSegment.ipp:70
const TVector3< T > & getOrigin() const
Definition TLineSegment.ipp:82
const TVector3< T > & getDir() const
Definition TLineSegment.ipp:88
void setDir(const TVector3< T > &dir)
Set the direction vector of the line.
Definition TLineSegment.ipp:76
T getMaxT() const
Definition TLineSegment.ipp:100
TVector3< T > getTail() const
Get the coordinates on minimum parametric distance.
Definition TLineSegment.ipp:112
void setRange(T minT, T maxT)
Set the parametric range where the segment extends. The range is [minT, maxT). This is equivalent to ...
Definition TLineSegment.ipp:55
TLineSegment & flip()
Point the line in opposite direction.
Definition TLineSegment.ipp:35
The root for all renderer implementations.
Definition EEngineProject.h:6