![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Ring ray representation for intersection testing. More...
#include <shammath/include/shammath/AABB.hpp>
Collaboration diagram for shammath::RingRay< T >:Public Types | |
| using | T_prop = shambase::VectorProperties< T > |
| using | Tscal = typename T_prop::component_type |
Public Member Functions | |
| T | get_ez () |
| RingRay (T center, Tscal radius, T e_x, T e_y) | |
| Construct a ring ray from center, e_x, and e_y. | |
Public Attributes | |
| T | center |
| Tscal | radius |
| T | e_x |
| T | e_y |
Ring ray representation for intersection testing.
A = {center + radius * (e_x * cos(theta) + e_y * sin(theta)) | theta in [0, 2*pi]}
| T | Vector type for coordinates |
| using shammath::RingRay< T >::T_prop = shambase::VectorProperties<T> |
| using shammath::RingRay< T >::Tscal = typename T_prop::component_type |
|
inline |
|
inline |
| T shammath::RingRay< T >::center |
| T shammath::RingRay< T >::e_x |
| T shammath::RingRay< T >::e_y |
| Tscal shammath::RingRay< T >::radius |