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

FX::FXComplexf Class Reference

Single-precision complex. More...

#include <FXComplexf.h>

Public Member Functions

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

Public Attributes

FXfloat re
 
FXfloat im
 

Detailed Description

Single-precision complex.


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

Copyright © 1997-2022 Jeroen van der Zijp