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

FX::FXComplexd Class Reference

Double-precision complex. More...

#include <FXComplexd.h>

Public Member Functions

 FXComplexd ()
 Default constructor; value is not initialized.
 
 FXComplexd (FXdouble r)
 Construct from real.
 
 FXComplexd (FXdouble r, FXdouble i)
 Construct from components.
 
 FXComplexd (const FXComplexd &c)
 Initialize from another complex.
 
FXComplexdset (FXdouble r)
 Set value from real.
 
FXComplexdset (FXdouble r, FXdouble i)
 Set value from components.
 
FXComplexdset (const FXComplexd &c)
 Set value from another complex.
 
FXbool operator! () const
 Test if zero.
 
FXdouble & real ()
 Access real part.
 
const FXdouble & real () const
 
FXdouble & imag ()
 Access imaginary part.
 
const FXdouble & imag () const
 
FXdouble modulus2 () const
 Squared modulus.
 
FXdouble modulus () const
 Modulus or absolute value of complex.
 
FXdouble argument () const
 Argument of complex.
 
FXdouble & operator[] (FXint i)
 Return a non-const reference to the ith element.
 
const FXdouble & operator[] (FXint i) const
 Return a const reference to the ith element.
 
FXComplexd operator+ () const
 Unary.
 
FXComplexd operator- () const
 
FXComplexdoperator= (const FXdouble r)
 Assignment from real.
 
FXComplexdoperator= (const FXComplexd &c)
 Assignment from another complex.
 
FXComplexdoperator+= (FXdouble r)
 Assigning operators with real.
 
FXComplexdoperator-= (FXdouble r)
 
FXComplexdoperator*= (FXdouble r)
 
FXComplexdoperator/= (FXdouble r)
 
FXComplexdoperator+= (const FXComplexd &c)
 Assigning operators with another complex.
 
FXComplexdoperator-= (const FXComplexd &c)
 
FXComplexdoperator*= (const FXComplexd &c)
 
FXComplexdoperator/= (const FXComplexd &c)
 
 ~FXComplexd ()
 Destructor.
 

Public Attributes

FXdouble re
 
FXdouble im
 

Detailed Description

Double-precision complex.


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

Copyright © 1997-2022 Jeroen van der Zijp