use-conic 0.0.6

Conic primitives for the RustUse geometry workspace
Documentation
  • Coverage
  • 100%
    26 out of 26 items documented1 out of 22 items with examples
  • Size
  • Source code size: 9.67 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 555.4 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s 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-conic

Conic primitives for the RustUse geometry workspace.

use-conic begins with named conic-family value types and lightweight validation. It does not attempt symbolic equation manipulation or fitting algorithms.

Example

use use_conic::{ConicKind, Ellipse};
use use_point::Point2;

let ellipse = Ellipse::new(Point2::origin(), 4.0, 2.0).expect("positive radii");

assert_eq!(ellipse.kind(), ConicKind::Ellipse);
assert_eq!(ellipse.major_radius(), 4.0);