final
class
FloatComplex extends AnyVal
Instance Constructors
-
new
FloatComplex(u: Long)
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
-
-
-
-
-
-
-
-
-
final
def
==(arg0: Any): Boolean
-
final
def
abs: Float
-
final
def
angle: Float
-
final
def
asInstanceOf[T0]: T0
-
final
def
complexSignum: FloatComplex
-
-
def
getClass(): Class[_ <: AnyVal]
-
final
def
imag: Float
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
isWhole: Boolean
-
-
-
-
final
def
real: Float
-
final
def
repr: String
-
final
def
signum: Int
-
final
def
toString(): String
-
val
u: Long
Inherited from AnyVal
Inherited from NotNull
Inherited from Any
Value class which encodes two floating point values in a Long.
We get (basically) unboxed complex numbers using this hack. The underlying implementation lives in the FastComplex object.