|
Celeritas 0.7-develop+8dfc575
|
Axis-aligned plane with positive-facing normal. More...
#include <PlaneAligned.hh>
Type aliases | |
| using | Intersections = Array< real_type, 1 > |
| Intersection with the axis. | |
| using | StorageSpan = Span< real_type const, 1 > |
| Intersection with the axis. | |
| using | Gradient = detail::ScaledReal3< detail::Linear > |
| Intersection with the axis. | |
| static constexpr SurfaceType | surface_type () |
| Surface type identifier. | |
| static constexpr bool | simple_safety () |
| Safety is intersection along surface normal. | |
| PlaneAligned (real_type position) | |
| Construct from axis intercept. | |
| template<class R > | |
| PlaneAligned (Span< R, StorageSpan::extent >) | |
| Construct from raw data. | |
| constexpr real_type | position () const |
| Distance from the origin along the normal to the plane (deprecated) | |
| constexpr real_type | displacement () const |
| Distance from the origin along the normal to the plane. | |
| StorageSpan | data () const |
| Get a view to the data for type-deleted storage. | |
| Real3 | calc_normal () const |
| Calculate outward normal. | |
| real_type | dot_normal (Real3 const &pos) const |
| Get the dot product with the normal. | |
| SignedSense | calc_sense (Real3 const &pos) const |
| Determine the sense of the position relative to this surface. | |
| real_type | calc_value (Real3 const &pos) const |
| Evaluate the plane expression at a point. | |
| Intersections | calc_intersections (Real3 const &pos, Real3 const &dir, SurfaceState on_surface) const |
| Calculate all possible straight-line intersections with this surface. | |
| Real3 | calc_normal (Real3 const &pos) const |
| Calculate outward normal at a position on the surface. | |
| Gradient | calc_gradient (Real3 const &pos) const |
| Calculate the gradient at a point. | |
| real_type | calc_safety (Real3 const &pos) const |
| Calculate the distance to the nearest point on the surface. | |
Axis-aligned plane with positive-facing normal.
|
inline |
Calculate the distance to the nearest point on the surface.
This is the magnitude of the displacement along the normal: \( |\hat{n} \cdot \mathbf{x} - d| \).
Get the dot product with the normal.
This is used for intersection, sense, and combined-plane methods.