OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
Classes | Functions
Vector3D.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Vector3D
 A 3-dimension vector. More...
 

Functions

Vector3D operator+ (const Vector3D &a, const Vector3D &b)
 Add. More...
 
Vector3D operator- (const Vector3D &a, const Vector3D &b)
 Subtract. More...
 
Vector3D operator* (const Vector3D &a, double factor)
 Multiply. More...
 
Vector3D operator* (double factor, const Vector3D &a)
 Multiply. More...
 
Vector3D cross (const Vector3D &a, const Vector3D &b)
 Vector cross product. More...
 
double dot (const Vector3D &a, const Vector3D &b)
 Vector dot product. More...
 

Function Documentation

◆ cross()

Vector3D cross ( const Vector3D a,
const Vector3D b 
)

◆ dot()

double dot ( const Vector3D a,
const Vector3D b 
)

Vector dot product.

Definition at line 118 of file Vector3D.cpp.

Referenced by Degrader::apply(), FlexibleCollimator::apply(), TSV_MetaDot< SymTenzor< T1, D >, SymTenzor< T2, D > >::apply(), TSV_MetaDot< SymTenzor< T1, D >, Tenzor< T2, D > >::apply(), TSV_MetaDot< Tenzor< T1, D >, SymTenzor< T2, D > >::apply(), TSV_MetaDot< Tenzor< T1, D >, Tenzor< T2, D > >::apply(), TSV_MetaDot< Vektor< T1, D >, Vektor< T2, D > >::apply(), P3MPoissonSolver::applyConstantFocusing(), Tracker::applyDrift(), ScatteringPhysics::applyRandomRotation(), ParallelCyclotronTracker::bunchDumpPhaseSpaceData(), ParallelCyclotronTracker::bunchDumpStatData(), MultiBunchHandler::calcBunchBeamParameters(), ParallelCyclotronTracker::computePathLengthUpdate(), ParallelCyclotronTracker::computeSpaceChargeFields_m(), ParallelCyclotronTracker::deleteParticle(), Div(), Probe::doCheck(), Stripper::doCheck(), BeamStrippingPhysics::doPhysics(), ParticleInteractLayout< T, Dim, Mesh >::find_pairs(), ParallelCyclotronTracker::gapCrossKick_m(), Euclid3DGeometry::getArcLength(), PartBunchBase< T, Dim >::getBoundingSphere(), Util::getGamma(), PartBunchBase< T, Dim >::getLocalBoundingSphere(), Bend2D::getOutline(), CavityAutophaser::getPhaseAtMaxEnergy(), getQuaternion(), ParallelCyclotronTracker::getQuaternionTwoVectors(), Bend2D::getSurfaceMesh(), ParallelCyclotronTracker::globalToLocal(), ParallelCyclotronTracker::initDistInGlobalFrame(), OrbitThreader::integrate(), BoundaryGeometry::intersectLineTriangle(), BorisPusher::kick(), ParallelCyclotronTracker::localToGlobal(), mslang::AffineTransformation::mult(), Quaternion::Norm(), ParallelCyclotronTracker::normalizeQuaternion(), ParallelCyclotronTracker::normalizeVector(), Quaternion::operator*=(), BoundaryGeometry::partInside(), ParallelCyclotronTracker::push(), BorisPusher::push(), LF2< FieldFunction, Arguments >::push_m(), ParallelCyclotronTracker::rotateAroundX(), ParallelCyclotronTracker::rotateAroundZ(), CoordinateSystemTrafo::rotateFrom(), CoordinateSystemTrafo::rotateTo(), ParallelCyclotronTracker::rotateWithQuaternion(), OrbitThreader::setDesignEnergy(), Bend2D::setFieldCalcParam(), AmrBoxLib::tagForMomenta_m(), RFCavity::trackOnAxisParticle(), CoordinateSystemTrafo::transformFrom(), CoordinateSystemTrafo::transformTo(), and mslang::AffineTransformation::transformTo().

◆ operator*() [1/2]

Vector3D operator* ( const Vector3D a,
double  factor 
)

Multiply.

Definition at line 83 of file Vector3D.cpp.

◆ operator*() [2/2]

Vector3D operator* ( double  factor,
const Vector3D a 
)

Multiply.

Definition at line 88 of file Vector3D.cpp.

◆ operator+()

Vector3D operator+ ( const Vector3D a,
const Vector3D b 
)

Add.

Definition at line 73 of file Vector3D.cpp.

◆ operator-()

Vector3D operator- ( const Vector3D a,
const Vector3D b 
)

Subtract.

Definition at line 78 of file Vector3D.cpp.