Package nom.tam.util
Class ComplexValue.Float
java.lang.Object
nom.tam.util.ComplexValue
nom.tam.util.ComplexValue.Float
- Enclosing class:
- ComplexValue
Single-precision complex values.
- Since:
- 1.18
- Author:
- Attila Kovacs
-
Nested Class Summary
Nested classes/interfaces inherited from class nom.tam.util.ComplexValue
ComplexValue.Float
-
Field Summary
Fields inherited from class nom.tam.util.ComplexValue
I, ONE, ZERO
-
Constructor Summary
-
Method Summary
Methods inherited from class nom.tam.util.ComplexValue
equals, hashCode, im, isFinite, isZero, re, toBoundedString, toString, toString
-
Constructor Details
-
Float
public Float(float re, float im) Instantiates a new single-precision complex number value with the specified real and imaginary components.- Parameters:
re
- the real partim
- thei maginary part- Since:
- 1.20
-
Float
Instantiates a new single-precision complex number value from the string repressentation of it in a FITS header value. By default, it will parse complex numbers as a comma-separated pair of real values enclosed in a bracket, such as
(1.0, -2.0)
, or standard real values, such as123.456
or123
(as real-only values). There can be any number of spaces around the brackets, number components or the comma.- Parameters:
str
- the FITS string representation of the complex value- Throws:
IllegalArgumentException
- if the supplied string does not appear to be a FITS standard representation of a complex value.- Since:
- 1.20
-