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