Describes a complex number type over a FieldNumberType for its real and imaginary parts.
- Refines
Field
- Has models
- CGAL::Complex_number
|
|
| ComplexNumber () |
| | Default constructor, sets the both the real part and the imaginary part to \( 0 \).
|
|
| ComplexNumber (const FT &real_part) |
| | Constructor, sets the real part to real_part and the imaginary part to \( 0 \).
|
|
| ComplexNumber (const FT &real_part, const FT &imaginary_part) |
| | Constructor, sets the real part to real_part and the imaginary part to imaginary_part .
|
| template<class U, class V> |
| | ComplexNumber (U &&real_part, V &&imaginary_part) |
| | Constructor, sets the real part to real_part and the imaginary part to imaginary_part .
|
|
|
void | real (const FT &real_part) |
| | sets the real part to real_part .
|
|
void | imag (const FT &imaginary_part) |
| | sets the imaginary part to imaginary_part .
|
|
FT | real () const |
| | returns the real part.
|
|
FT | imag () const |
| | returns the imaginary part.
|
◆ ComplexNumber()
template<class U, class V>
| ComplexNumber::ComplexNumber |
( |
U && | real_part, |
|
|
V && | imaginary_part ) |
Constructor, sets the real part to real_part and the imaginary part to imaginary_part .
FT must be constructible from U and V.