Celeritas 0.7.0-dev.252+develop.478e7a17
Loading...
Searching...
No Matches
List of all members
celeritas::SphereCentered Class Reference

Sphere centered at the origin. More...

#include <SphereCentered.hh>

Type aliases

using Intersections = Array< real_type, 2 >
 Surface type identifier.
 
using StorageSpan = Span< real_type const, 1 >
 Surface type identifier.
 
static constexpr SurfaceType surface_type ()
 Surface type identifier.
 
static constexpr bool simple_safety ()
 Safety is intersection along surface normal.
 
static SphereCentered from_radius_sq (real_type rsq)
 Construct from the square of the radius.
 
 SphereCentered (real_type radius)
 Construct with sphere radius.
 
template<class R >
 SphereCentered (Span< R, StorageSpan::extent >)
 Construct from raw data.
 
real_type radius_sq () const
 Square of the radius.
 
StorageSpan data () const
 Get a view to the data for type-deleted storage.
 
SignedSense calc_sense (Real3 const &pos) const
 Determine the sense of the position relative to this surface.
 
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.
 

Detailed Description

Sphere centered at the origin.

Member Function Documentation

◆ from_radius_sq()

SphereCentered celeritas::SphereCentered::from_radius_sq ( real_type  rsq)
inlinestatic

Construct from the square of the radius.

This is used for surface simplification.


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