EGSnrc C++ class library  Report PIRS-898 (2021)
Iwan Kawrakow, Ernesto Mainegra-Hing, Frederic Tessier, Reid Townson and Blake Walters
Public Member Functions | List of all members
EGS_Projector Class Reference

A projector into any plane. More...

#include <egs_projectors.h>

Public Member Functions

 EGS_Projector (const EGS_Vector &A, const string &Type)
 Construct a projector named Type. for a plane with plane normal A.
 
 EGS_Projector (const EGS_Vector &x1, const EGS_Vector &x2, const EGS_Vector &x3, const string &Type)
 Construct a projector named Type for the plane defined by the 3 points x1, x2 and x3.
 
EGS_Float operator* (const EGS_Vector &x) const
 Get the scalar product between x and the plane normal.
 
EGS_Vector operator* (EGS_Float t) const
 Get the plane normal scaled by t.
 
EGS_Float length () const
 Get the length of the plane normal.
 
EGS_2DVector getProjection (const EGS_Vector &x) const
 Get the 2D projection of the vector x onto the plane.
 
EGS_Float distance (const EGS_Vector &x) const
 Get the distance from x to the plane (positive, negative or zero, depending on which side of the plane the position x is).
 
const string & getType () const
 Get the name (type) of this projector.
 
void printInfo () const
 Print some info about this projector using egsInformation.
 
EGS_Vector normal () const
 Get the normal to the projection plane.
 
EGS_Vector normal (const EGS_2DVector &x) const
 ?
 
EGS_Vector getPoint (const EGS_2DVector &x) const
 Get a 3D position from the 2D position x.
 

Detailed Description

A projector into any plane.

Definition at line 242 of file egs_projectors.h.


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