tri_ge_rust

Crates.iotri_ge_rust
lib.rstri_ge_rust
version0.1.0
created_at2025-11-02 17:01:10.538742+00
updated_at2025-11-02 17:01:10.538742+00
descriptionLightweight library for fast calculating and creating 2D and 3D shapes
homepage
repository
max_upload_size
id1913326
size8,174
C://elegant> script (ivan-mipt)

documentation

README

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!

Commit count: 0

cargo fmt