MIDSX 0.1
A x-ray transport code system for dosimetry
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
DiscIsotropicDirectionality Class Reference

Class which represents a disc isotropic directionality. More...

#include <source.h>

Collaboration diagram for DiscIsotropicDirectionality:

Public Member Functions

 DiscIsotropicDirectionality (Eigen::Vector3d center, Eigen::Vector3d normal, double radius)
 Constructor for the DiscIsotropicDirectionality class.
 
Eigen::Vector3d sampleDirection (const Eigen::Vector3d &photon_initial_position) override
 Returns a sample from the disc isotropic directionality.
 

Private Member Functions

void setUAndV ()
 
Eigen::Vector3d calculateNormalizedPerimeterVector (double theta)
 

Private Attributes

Eigen::Vector3d center_
 
Eigen::Vector3d normal_
 
double radius_
 
Eigen::Vector3d u_
 
Eigen::Vector3d v_
 
ProbabilityDist::Uniform uniform_dist_
 

Detailed Description

Class which represents a disc isotropic directionality.

The disc isotropic directionality is a uniform distribution over a disc.

Definition at line 173 of file source.h.

Constructor & Destructor Documentation

◆ DiscIsotropicDirectionality()

DiscIsotropicDirectionality::DiscIsotropicDirectionality ( Eigen::Vector3d center,
Eigen::Vector3d normal,
double radius )

Constructor for the DiscIsotropicDirectionality class.

Parameters
centerThe center of the disc.
normalThe normal vector of the disc.
radiusThe radius of the disc.

Member Function Documentation

◆ sampleDirection()

Eigen::Vector3d DiscIsotropicDirectionality::sampleDirection ( const Eigen::Vector3d & photon_initial_position)
overridevirtual

Returns a sample from the disc isotropic directionality.

Returns
A sample from the disc isotropic directionality.

Implements Directionality.

Member Data Documentation

◆ center_

Eigen::Vector3d DiscIsotropicDirectionality::center_
private

Definition at line 191 of file source.h.

◆ normal_

Eigen::Vector3d DiscIsotropicDirectionality::normal_
private

Definition at line 192 of file source.h.

◆ radius_

double DiscIsotropicDirectionality::radius_
private

Definition at line 193 of file source.h.

◆ u_

Eigen::Vector3d DiscIsotropicDirectionality::u_
private

Definition at line 194 of file source.h.

◆ uniform_dist_

ProbabilityDist::Uniform DiscIsotropicDirectionality::uniform_dist_
private

Definition at line 196 of file source.h.

◆ v_

Eigen::Vector3d DiscIsotropicDirectionality::v_
private

Definition at line 195 of file source.h.


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