use-angle 0.0.6

Angle primitives for the RustUse geometry workspace
Documentation
  • Coverage
  • 100%
    10 out of 10 items documented1 out of 7 items with examples
  • Size
  • Source code size: 4.07 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 309.44 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 5s Average build duration of successful builds.
  • all releases: 5s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-geometry
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-angle

Angle primitives for the RustUse geometry workspace.

use-angle stores angles in radians and provides direct degree conversion helpers.

Example

use use_angle::Angle;

let angle = Angle::from_degrees(180.0);

assert_eq!(angle.radians(), core::f64::consts::PI);
assert_eq!(Angle::from_radians(core::f64::consts::PI).degrees(), 180.0);