make Cmplx fields public
This commit is contained in:
parent
b8ef9fd9c9
commit
a8308fbb76
|
@ -25,9 +25,9 @@ use std::num::{Zero,One,ToStrRadix};
|
||||||
#[deriving(Eq,Clone)]
|
#[deriving(Eq,Clone)]
|
||||||
pub struct Cmplx<T> {
|
pub struct Cmplx<T> {
|
||||||
/// Real portion of the complex number
|
/// Real portion of the complex number
|
||||||
re: T,
|
pub re: T,
|
||||||
/// Imaginary portion of the complex number
|
/// Imaginary portion of the complex number
|
||||||
im: T
|
pub im: T
|
||||||
}
|
}
|
||||||
|
|
||||||
pub type Complex32 = Cmplx<f32>;
|
pub type Complex32 = Cmplx<f32>;
|
||||||
|
|
Loading…
Reference in New Issue