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

A class representing 2D vectors. More...

#include <egs_projectors.h>

Public Member Functions

 EGS_2DVector (EGS_Float X, EGS_Float Y)
 
 EGS_2DVector (const EGS_2DVector &v)
 
EGS_2DVectoroperator= (const EGS_Vector &v)
 
EGS_2DVector operator+ (const EGS_2DVector &v) const
 
EGS_2DVectoroperator+= (const EGS_2DVector &v)
 
EGS_2DVector operator- (const EGS_2DVector &v) const
 
EGS_2DVectoroperator-= (const EGS_2DVector &v)
 
EGS_2DVector operator* (const EGS_Float f) const
 
EGS_2DVectoroperator*= (const EGS_Float f)
 
EGS_Float operator* (const EGS_2DVector &v) const
 
EGS_Float operator% (const EGS_2DVector &v) const
 
EGS_Vector crossProduct (const EGS_2DVector &v) const
 
EGS_Float length () const
 
EGS_Float length2 () const
 
void normalize ()
 

Public Attributes

EGS_Float x
 
EGS_Float y
 

Detailed Description

A class representing 2D vectors.

This class is similar to EGS_Vector but represents 2D points. It defines various convenience functions for vector additions, multiplications, etc.

Definition at line 54 of file egs_projectors.h.


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