EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
EBGeometry::RayT< T > Struct Template Reference

A ray: the points origin + t * direction. More...

#include <EBGeometry_Ray.hpp>

Public Types

using Scalar = T
 Floating-point precision.
 

Public Member Functions

Vec3T< T > at (T a_t) const noexcept
 The point at a distance along the ray.
 

Public Attributes

Vec3T< T > m_origin
 Where the ray starts.
 
Vec3T< T > m_direction
 Unit direction.
 

Detailed Description

template<class T>
struct EBGeometry::RayT< T >

A ray: the points origin + t * direction.

The queries take the direction to be of unit length, so that t is a distance along the ray. This is checked only with assertions on (EBGEOMETRY_EXPECT): with another length, a marched query steps the wrong distance and can step over the surface.

Template Parameters
TFloating-point precision.

Member Function Documentation

◆ at()

template<class T >
Vec3T< T > EBGeometry::RayT< T >::at ( T  a_t) const
inlinenoexcept

The point at a distance along the ray.

Parameters
[in]a_tDistance along the ray.
Returns
origin + a_t * direction.

The documentation for this struct was generated from the following file: