Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXComplexf Class Reference

Single-precision complex. More...

#include <FXComplexf.h>

List of all members.

Public Member Functions

 FXComplexf ()
 FXComplexf (FXfloat r)
 FXComplexf (FXfloat r, FXfloat i)
 FXComplexf (const FXComplexf &c)
FXComplexfset (FXfloat r)
FXComplexfset (FXfloat r, FXfloat i)
FXComplexfset (const FXComplexf &c)
 operator FXbool () const
FXbool operator! () const
FXfloat modulus2 () const
FXfloat modulus () const
FXfloat argument () const
FXfloatoperator[] (FXint i)
const FXfloatoperator[] (FXint i) const
FXComplexf operator+ () const
FXComplexf operator- () const
FXComplexfoperator= (const FXfloat r)
FXComplexfoperator= (const FXComplexf &c)
FXComplexfoperator+= (FXfloat r)
FXComplexfoperator-= (FXfloat r)
FXComplexfoperator*= (FXfloat r)
FXComplexfoperator/= (FXfloat r)
FXComplexfoperator+= (const FXComplexf &c)
FXComplexfoperator-= (const FXComplexf &c)
FXComplexfoperator*= (const FXComplexf &c)
FXComplexfoperator/= (const FXComplexf &c)
FXbool operator== (const FXComplexf &c) const
FXbool operator!= (const FXComplexf &c) const

Public Attributes

FXfloat re
FXfloat im

Friends

FXComplexf conjugate (const FXComplexf &c)
FXComplexf polar (FXfloat mod, FXfloat arg)
FXComplexf exponent (const FXComplexf &c)
FXComplexf logarithm (const FXComplexf &c)
FXbool operator== (const FXComplexf &c, FXfloat r)
FXbool operator!= (const FXComplexf &c, FXfloat r)
FXbool operator== (FXfloat r, const FXComplexf &c)
FXbool operator!= (FXfloat r, const FXComplexf &c)
FXComplexf operator+ (const FXComplexf &a, const FXComplexf &b)
FXComplexf operator- (const FXComplexf &a, const FXComplexf &b)
FXComplexf operator* (const FXComplexf &a, const FXComplexf &b)
FXComplexf operator/ (const FXComplexf &a, const FXComplexf &b)
FXComplexf operator+ (const FXComplexf &a, FXfloat b)
FXComplexf operator- (const FXComplexf &a, FXfloat b)
FXComplexf operator* (const FXComplexf &a, FXfloat b)
FXComplexf operator/ (const FXComplexf &a, FXfloat b)
FXComplexf operator+ (FXfloat a, const FXComplexf &b)
FXComplexf operator- (FXfloat a, const FXComplexf &b)
FXComplexf operator* (FXfloat a, const FXComplexf &b)
FXComplexf operator/ (FXfloat a, const FXComplexf &b)
FXStreamoperator<< (FXStream &store, const FXComplexf &c)
FXStreamoperator>> (FXStream &store, FXComplexf &c)


Detailed Description

Single-precision complex.

Constructor & Destructor Documentation

FX::FXComplexf::FXComplexf (  )  [inline]

Default constructor; value is not initialized.

FX::FXComplexf::FXComplexf ( FXfloat  r  )  [inline]

Construct from real.

FX::FXComplexf::FXComplexf ( FXfloat  r,
FXfloat  i 
) [inline]

Construct from components.

FX::FXComplexf::FXComplexf ( const FXComplexf c  )  [inline]

Initialize from another complex.


Member Function Documentation

FXComplexf& FX::FXComplexf::set ( FXfloat  r  )  [inline]

Set value from real.

FXComplexf& FX::FXComplexf::set ( FXfloat  r,
FXfloat  i 
) [inline]

Set value from components.

FXComplexf& FX::FXComplexf::set ( const FXComplexf c  )  [inline]

Set value from another complex.

FX::FXComplexf::operator FXbool (  )  const [inline]

Test for non-zero.

FXbool FX::FXComplexf::operator! (  )  const [inline]

Test if zero.

FXfloat FX::FXComplexf::modulus2 (  )  const [inline]

Squared modulus.

Referenced by FX::operator/(), and operator/=().

FXfloat FX::FXComplexf::modulus (  )  const [inline]

Modulus or absolute value of complex.

References sqrtf.

Referenced by FX::logarithm().

FXfloat FX::FXComplexf::argument (  )  const [inline]

Argument of complex.

References atan2f.

Referenced by FX::logarithm().

FXfloat& FX::FXComplexf::operator[] ( FXint  i  )  [inline]

Return a non-const reference to the ith element.

const FXfloat& FX::FXComplexf::operator[] ( FXint  i  )  const [inline]

Return a const reference to the ith element.

FXComplexf FX::FXComplexf::operator+ (  )  const [inline]

Unary.

FXComplexf FX::FXComplexf::operator- (  )  const [inline]

FXComplexf& FX::FXComplexf::operator= ( const FXfloat  r  )  [inline]

Assignment from real.

FXComplexf& FX::FXComplexf::operator= ( const FXComplexf c  )  [inline]

Assignment from another complex.

FXComplexf& FX::FXComplexf::operator+= ( FXfloat  r  )  [inline]

Assigning operators with real.

FXComplexf& FX::FXComplexf::operator-= ( FXfloat  r  )  [inline]

FXComplexf& FX::FXComplexf::operator*= ( FXfloat  r  )  [inline]

FXComplexf& FX::FXComplexf::operator/= ( FXfloat  r  )  [inline]

FXComplexf& FX::FXComplexf::operator+= ( const FXComplexf c  )  [inline]

Assigning operators with another complex.

References im, and re.

FXComplexf& FX::FXComplexf::operator-= ( const FXComplexf c  )  [inline]

References im, and re.

FXComplexf& FX::FXComplexf::operator*= ( const FXComplexf c  )  [inline]

References im, and re.

FXComplexf& FX::FXComplexf::operator/= ( const FXComplexf c  )  [inline]

References im, modulus2(), and re.

FXbool FX::FXComplexf::operator== ( const FXComplexf c  )  const [inline]

Equality between one complex and another.

References im, and re.

FXbool FX::FXComplexf::operator!= ( const FXComplexf c  )  const [inline]

References im, and re.


Friends And Related Function Documentation

FXComplexf conjugate ( const FXComplexf c  )  [friend]

Return complex complex conjugate.

FXComplexf polar ( FXfloat  mod,
FXfloat  arg 
) [friend]

Return complex number from modulus and argument.

FXComplexf exponent ( const FXComplexf c  )  [friend]

Returns the complex base e exponential of c.

FXComplexf logarithm ( const FXComplexf c  )  [friend]

Returns the complex base e logarithm of c.

FXbool operator== ( const FXComplexf c,
FXfloat  r 
) [friend]

Equality between one complex and real.

FXbool operator!= ( const FXComplexf c,
FXfloat  r 
) [friend]

FXbool operator== ( FXfloat  r,
const FXComplexf c 
) [friend]

Equality between one real and complex.

FXbool operator!= ( FXfloat  r,
const FXComplexf c 
) [friend]

FXComplexf operator+ ( const FXComplexf a,
const FXComplexf b 
) [friend]

Operators between one complex and another.

FXComplexf operator- ( const FXComplexf a,
const FXComplexf b 
) [friend]

FXComplexf operator* ( const FXComplexf a,
const FXComplexf b 
) [friend]

FXComplexf operator/ ( const FXComplexf a,
const FXComplexf b 
) [friend]

FXComplexf operator+ ( const FXComplexf a,
FXfloat  b 
) [friend]

Operators between complex and real.

FXComplexf operator- ( const FXComplexf a,
FXfloat  b 
) [friend]

FXComplexf operator* ( const FXComplexf a,
FXfloat  b 
) [friend]

FXComplexf operator/ ( const FXComplexf a,
FXfloat  b 
) [friend]

FXComplexf operator+ ( FXfloat  a,
const FXComplexf b 
) [friend]

Operators between real and complex.

FXComplexf operator- ( FXfloat  a,
const FXComplexf b 
) [friend]

FXComplexf operator* ( FXfloat  a,
const FXComplexf b 
) [friend]

FXComplexf operator/ ( FXfloat  a,
const FXComplexf b 
) [friend]

FXStream& operator<< ( FXStream store,
const FXComplexf c 
) [friend]

Save to a stream.

FXStream& operator>> ( FXStream store,
FXComplexf c 
) [friend]

Load from a stream.


Member Data Documentation

Copyright © 1997-2009 Jeroen van der Zijp