| Crates.io | abels-complex |
| lib.rs | abels-complex |
| version | 0.4.0 |
| created_at | 2025-08-09 04:34:27.442178+00 |
| updated_at | 2025-11-15 23:26:30.486996+00 |
| description | Complex numbers with rectangular and polar representations |
| homepage | |
| repository | https://github.com/abel465/abels-complex-rs |
| max_upload_size | |
| id | 1787566 |
| size | 105,340 |
Complex numbers with rectangular and polar representations
ComplexPolar does not implicitly normalize (|z| >= 0 and -PI < Arg(z) >= PI)
no implicit conversions between rectangular and polar forms just to get back the original type
no_std supportno_std support can be enabled by compiling with --no-default-features to
disable std support and --features libm for math functions that are only
defined in std.
approx] - traits and macros for approximate float comparisonslibm] - uses libm math functions instead of stdglam] - implements From<glam::Vec2> for Complex and From<Complex> for glam::Vec2rand] - implements rand::distr::Distribution<Complex> for rand::distr::StandardUniform
and rand::distr::Distribution<ComplexPolar> for rand::distr::StandardUniform