AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/v0.6.0/src/axom/primal/geometry/Ray.hpp>
Public Types | |
using | CoordType = T |
using | PointType = Point< T, NDIMS > |
using | SegmentType = Segment< T, NDIMS > |
using | VectorType = Vector< T, NDIMS > |
Public Member Functions | |
Ray ()=delete | |
Disable the default constructor. More... | |
AXOM_HOST_DEVICE | Ray (const PointType &origin, const VectorType &direction) |
Constructs a ray object with the given origin and direction. More... | |
Ray (const SegmentType &S) | |
Constructs a ray object from a directed segment. More... | |
AXOM_HOST_DEVICE const PointType & | origin () const |
Returns the point of origin of this Ray instance. More... | |
AXOM_HOST_DEVICE PointType | at (const T &t) const |
Returns a point along the ray by evaluating \( R(t) \). More... | |
AXOM_HOST_DEVICE const VectorType & | direction () const |
Returns the direction vector of this Ray instance. More... | |
std::ostream & | print (std::ostream &os) const |
Simple formatted print of a ray instance. More... | |
using axom::primal::Ray< T, NDIMS >::CoordType = T |
using axom::primal::Ray< T, NDIMS >::PointType = Point<T, NDIMS> |
using axom::primal::Ray< T, NDIMS >::SegmentType = Segment<T, NDIMS> |
using axom::primal::Ray< T, NDIMS >::VectorType = Vector<T, NDIMS> |
|
delete |
Disable the default constructor.
axom::primal::Ray< T, NDIMS >::Ray | ( | const PointType & | origin, |
const VectorType & | direction | ||
) |
Constructs a ray object with the given origin and direction.
[in] | origin | the origin of the ray. |
[in] | direction | the direction of the ray. |
References SLIC_ASSERT, and axom::primal::Vector< T, NDIMS >::squared_norm().
|
explicit |
Constructs a ray object from a directed segment.
[in] | S | user-supplied segment. |
References SLIC_ASSERT, and axom::primal::Vector< T, NDIMS >::squared_norm().
|
inline |
Returns the point of origin of this Ray instance.
References axom::primal::Ray< T, NDIMS >::at(), and AXOM_HOST_DEVICE.
|
inline |
Returns a point along the ray by evaluating \( R(t) \).
[in] | t | user-supplied value for R(t). |
Referenced by axom::quest::InOutOctree< DIM >::generateIndex(), axom::primal::intersect(), and axom::primal::Ray< T, NDIMS >::origin().
|
inline |
Returns the direction vector of this Ray instance.
Referenced by axom::quest::InOutOctree< DIM >::generateIndex().
|
inline |
Simple formatted print of a ray instance.
os | The output stream to write to |