![]() |
![]() |
#include <RKCylindricalDistance.h>
Public Types | |
typedef T | Scalar |
typedef RKSmallVector< T, N > | Vector |
Public Member Functions | |
virtual Scalar | operator() (const Vector &a, const Vector &b, const Scalar &rho) const |
virtual | ~RKCylindricalDistance () |
Definition at line 9 of file RKCylindricalDistance.h.
typedef T RKCylindricalDistance< T, N >::Scalar |
Reimplemented from RKDistance< T, N >.
Definition at line 12 of file RKCylindricalDistance.h.
typedef RKSmallVector<T,N> RKCylindricalDistance< T, N >::Vector |
Reimplemented from RKDistance< T, N >.
Definition at line 13 of file RKCylindricalDistance.h.
virtual RKCylindricalDistance< T, N >::~RKCylindricalDistance | ( | ) | [inline, virtual] |
Definition at line 15 of file RKCylindricalDistance.h.
{}
virtual Scalar RKCylindricalDistance< T, N >::operator() | ( | const Vector & | a, |
const Vector & | b, | ||
const Scalar & | rho | ||
) | const [inline, virtual] |
Implements RKDistance< T, N >.
Definition at line 17 of file RKCylindricalDistance.h.
References PV3DBase< T, PVType, FrameType >::mag(), mag(), CylindricalState::momentum(), and CylindricalState::position().
{ CylindricalState astate(rho,a,1.); CylindricalState bstate(rho,b,1.); return (astate.position()-bstate.position()).mag() + (astate.momentum()-bstate.momentum()).mag() / bstate.momentum().mag(); }