Allolib  1.0
C++ Components For Interactive Multimedia
al::Polar< T > Class Template Reference

#include <C:/Users/Andres/source/repos/casm_viewer/external/tinc/external/allolib/include/al/math/al_Complex.hpp>

Public Member Functions

 Polar (const T &phs=T(0))
 
 Polar (const T &mag, const T &phs)
 
 Polar (const Complex< T > &v)
 
Polaroperator= (const Complex< T > &v)
 

Public Attributes

union {
   struct {
      T   m
 Magnitude.
 
      T   p
 Phase, in radians.
 
   } 
 
   T   elems [2]
 
}; 
 

Detailed Description

template<class T>
class al::Polar< T >

Polar number

Definition at line 64 of file al_Complex.hpp.

Constructor & Destructor Documentation

◆ Polar() [1/3]

template<class T >
al::Polar< T >::Polar ( const T &  phs = T(0))
inline
Parameters
[in]phsphase, in radians

Definition at line 75 of file al_Complex.hpp.

◆ Polar() [2/3]

template<class T >
al::Polar< T >::Polar ( const T &  mag,
const T &  phs 
)
inline
Parameters
[in]magmagnitude
[in]phsphase, in radians

Definition at line 79 of file al_Complex.hpp.

◆ Polar() [3/3]

template<class T >
al::Polar< T >::Polar ( const Complex< T > &  v)
inline
Parameters
[in]vrectangular complex number to convert from

Definition at line 82 of file al_Complex.hpp.


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