tri_ge_rust 0.1.0

Lightweight library for fast calculating and creating 2D and 3D shapes
Documentation
  • Coverage
  • 0%
    0 out of 47 items documented0 out of 32 items with examples
  • Size
  • Source code size: 8.17 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 527.96 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ivan-mipt

TriGeRust

Lightweight Rust library for fast geometric calculations and abstract 2D/3D shape modeling.

Usage

Add to your Cargo.toml:

[dependencies]

tri_ge_rust = "0.1"

Then you may do this in your main.rs:

use tri_ge_rust::{two_d, three_d}; // this is so important!

// 2D shapes
let rect = two_d::Rectangle::new(5.0, 3.0).unwrap(); // there are numbers for example, you can use other numbers
println!("Diagonal: {}", rect.diagonal());

// 3D shapes  
let cuboid = three_d::Cuboid::new(4.0, 3.0, 2.0).unwrap(); 
println!("Volume: {}", cuboid.volume());

About feedback

I will be excited, if you send feedback about this library on feedback! Please, report bugs and come up with your greatful ideas!