use-projection 0.0.6

Projection primitives for the RustUse geometry workspace
Documentation
  • Coverage
  • 100%
    9 out of 9 items documented1 out of 7 items with examples
  • Size
  • Source code size: 5.3 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 365.87 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-projection

Projection primitives for the RustUse geometry workspace.

use-projection provides naming and tiny helpers for geometric projections without rendering-engine behavior.

Example

use use_point::Point2;
use use_projection::{Projection2, ProjectionKind};

let projection = Projection2::new(ProjectionKind::Orthographic, 2.0).expect("valid projection");

assert_eq!(projection.project_x_axis(Point2::new(3.0, 4.0)), 6.0);