RTXI 1.3
complex Class Reference

#include <complex.h>

List of all members.

Public Member Functions

 complex (double _r, double _i=0.0)
 complex (float _r, float _i)
 complex ()
void operator+= (const complex)
void operator-= (const complex)
void operator*= (const complex)
void operator*= (double)
void operator/= (double)

Friends

double real (const complex &)
double imag (const complex &)
complex conj (const complex)
complex sqrt (const complex)
double norm (const complex)
double cabs (const complex)
double mag (const complex)
double arg (const complex)
complex cexp (const complex)
double mag_sqrd (const complex)
complex operator- (const complex)
complex operator+ (const complex, const complex)
complex operator- (const complex, const complex)
complex operator* (const complex, const complex)
complex operator* (const complex, double)
complex operator* (double, const complex)
complex operator/ (const complex, const complex)
complex operator/ (const complex, double)
complex operator/ (double, const complex)

Detailed Description

Definition at line 12 of file complex.h.


Constructor & Destructor Documentation

complex::complex ( double  _r,
double  _i = 0.0 
) [inline]

Definition at line 51 of file complex.h.

complex::complex ( float  _r,
float  _i 
) [inline]

Definition at line 52 of file complex.h.

complex::complex ( ) [inline]

Definition at line 54 of file complex.h.


Member Function Documentation

void complex::operator*= ( const complex  value) [inline]

Definition at line 60 of file complex.h.

void complex::operator*= ( double  _v) [inline]

Definition at line 59 of file complex.h.

void complex::operator+= ( const complex  _z) [inline]

Definition at line 55 of file complex.h.

void complex::operator-= ( const complex  _z) [inline]

Definition at line 57 of file complex.h.

void complex::operator/= ( double  )

Friends And Related Function Documentation

double arg ( const complex  _z) [friend]

Definition at line 81 of file complex.h.

double cabs ( const complex  _z) [friend]

Definition at line 78 of file complex.h.

complex cexp ( const complex  _z) [friend]

Definition at line 84 of file complex.h.

complex conj ( const complex  _z) [friend]

Definition at line 75 of file complex.h.

double imag ( const complex _z) [friend]

Definition at line 74 of file complex.h.

double mag ( const complex  _z) [friend]

Definition at line 79 of file complex.h.

double mag_sqrd ( const complex  _z) [friend]

Definition at line 80 of file complex.h.

double norm ( const complex  _z) [friend]

Definition at line 77 of file complex.h.

complex operator* ( double  _v1,
const complex  _z2 
) [friend]

Definition at line 115 of file complex.h.

complex operator* ( const complex  _z1,
double  _v2 
) [friend]

Definition at line 112 of file complex.h.

complex operator* ( const complex  value1,
const complex  value2 
) [friend]

Definition at line 121 of file complex.h.

complex operator+ ( const complex  _z1,
const complex  _z2 
) [friend]

Definition at line 104 of file complex.h.

complex operator- ( const complex  _z1,
const complex  _z2 
) [friend]

Definition at line 108 of file complex.h.

complex operator- ( const complex  _z) [friend]

Definition at line 101 of file complex.h.

complex operator/ ( const complex  z1,
double  v2 
) [friend]

Definition at line 118 of file complex.h.

complex operator/ ( const complex  value1,
const complex  value2 
) [friend]

Definition at line 38 of file complex.cpp.

complex operator/ ( double  ,
const complex   
) [friend]
double real ( const complex _z) [friend]

Definition at line 73 of file complex.h.

complex sqrt ( const complex  _z) [friend]

Definition at line 92 of file complex.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines