Class nptool::Vector3D
template <typename T>
Public Functions
| Type | Name |
|---|---|
| const coord_type | GetCoordinateSystem () |
| T | Phi () const |
| T | R () const |
| void | SetRThetaPhi (T R, T Theta, T Phi) |
| void | SetXYZ (T X, T Y, T Z) |
| Vector3D< T > | Unit () const |
| Vector3D () |
|
| Vector3D (T A, T B, T C, coord_type type=cartesian) |
|
| T | X () const |
| T | Y () const |
| T | Z () const |
| Vector3D< T > | cross (const Vector3D< TO > & B) |
| T | dot (const Vector3D< TO > & right) |
| void | to_cartesian () |
| void | to_polar () |
| ~Vector3D () |
Public Functions Documentation
function GetCoordinateSystem
inline const coord_type nptool::Vector3D::GetCoordinateSystem ()
function Phi
inline T nptool::Vector3D::Phi () const
function R
inline T nptool::Vector3D::R () const
function SetRThetaPhi
inline void nptool::Vector3D::SetRThetaPhi (
T R,
T Theta,
T Phi
)
function SetXYZ
inline void nptool::Vector3D::SetXYZ (
T X,
T Y,
T Z
)
function Unit
inline Vector3D < T > nptool::Vector3D::Unit () const
function Vector3D [1/2]
inline nptool::Vector3D::Vector3D ()
function Vector3D [2/2]
inline nptool::Vector3D::Vector3D (
T A,
T B,
T C,
coord_type type=cartesian
)
function X
inline T nptool::Vector3D::X () const
function Y
inline T nptool::Vector3D::Y () const
function Z
inline T nptool::Vector3D::Z () const
function cross
template<typename TO>
inline Vector3D < T > nptool::Vector3D::cross (
const Vector3D < TO > & B
)
function dot
template<typename TO>
inline T nptool::Vector3D::dot (
const Vector3D < TO > & right
)
function to_cartesian
inline void nptool::Vector3D::to_cartesian ()
function to_polar
inline void nptool::Vector3D::to_polar ()
function ~Vector3D
inline nptool::Vector3D::~Vector3D ()
Friends Documentation
friend operator*=
template<typename TO>
inline Vector3D < T > & nptool::Vector3D::operator*= (
Vector3D < T > & left,
const TO right
)
friend operator+
template<typename TO>
inline Vector3D < T > nptool::Vector3D::operator+ (
const Vector3D < T > & left,
const Vector3D < TO > & right
)
friend operator+=
template<typename TO>
inline Vector3D < T > & nptool::Vector3D::operator+= (
Vector3D < T > & left,
const Vector3D < TO > & right
)
friend operator-
template<typename TO>
inline Vector3D < T > nptool::Vector3D::operator- (
const Vector3D < T > & left,
const Vector3D < TO > & right
)
friend operator-=
template<typename TO>
inline Vector3D < T > & nptool::Vector3D::operator-= (
Vector3D < T > & left,
const Vector3D < TO > & right
)
friend operator/=
template<typename TO>
inline Vector3D < T > & nptool::Vector3D::operator/= (
Vector3D < T > & left,
TO right
)
friend operator<<
inline std::ostream & nptool::Vector3D::operator<< (
std::ostream & os,
const Vector3D < T > & v
)
The documentation for this class was generated from the following file src/core/NPVector3D.h