public final class FloatComplex
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static FloatComplex |
get(java.nio.ByteBuffer buffer)
Wraps a complex number stored in a buffer
|
static FloatComplex |
get(java.nio.ByteBuffer buffer,
int index)
Wraps the complex number at the specified position
of an array of complex numbers stored in a buffer.
|
static FloatComplex |
get(float[] array)
Wraps a complex number stored in the first two values of an array.
|
static FloatComplex |
get(float[] array,
int index)
Wraps the complex number at the specified position of
an array of complex numbers stored in an array of floats.
|
static FloatComplex |
get(java.nio.FloatBuffer buffer)
Wraps a complex number stored in a buffer
|
static FloatComplex |
get(java.nio.FloatBuffer buffer,
int index)
Wraps the complex number at the specified position
of an array of complex numbers stored in a buffer.
|
java.nio.FloatBuffer |
getBuffer()
Gets the buffer where the complex number is stored.
|
float |
getImag()
Gets the imaginary value.
|
float |
getReal()
Gets the real value.
|
void |
putImag(float imag)
Puts the imaginary value.
|
void |
putReal(float real)
Puts the real value.
|
public static FloatComplex get(java.nio.FloatBuffer buffer)
buffer
- bufferpublic static FloatComplex get(java.nio.FloatBuffer buffer, int index)
buffer
- bufferindex
- indexpublic static FloatComplex get(float[] array)
array
- arraypublic static FloatComplex get(float[] array, int index)
array
- arrayindex
- indexpublic static FloatComplex get(java.nio.ByteBuffer buffer)
buffer
- bufferpublic static FloatComplex get(java.nio.ByteBuffer buffer, int index)
buffer
- bufferindex
- indexpublic float getReal()
public float getImag()
public void putReal(float real)
real
- real valuepublic void putImag(float imag)
imag
- imaginary valuepublic java.nio.FloatBuffer getBuffer()