structural-shapes 0.1.4

Common structural shapes
Documentation

Build Status Crates.io docs.rs

About

This package provides utilities for a variety of different structural shapes. Currently, the following are included:

  • Pipes
  • Box Beams
  • I-Beams
  • Rods

Installation

Install through crates.io with:

cargo install structural_shapes

Then add it to your Cargo.toml with:

[dependencies]
strutural_shapes = "0.1.4"

and add this to your root:

use structural_shapes;

Usage

Here are some basic examples of usage

fn main() {
    let x = structural_shapes::Rod{radius: 1.0};
    println!("cross sectional area: {:?}", x.area());
    println!("moment of inertia: {:?}", x.moi_x());
    println!("moment of inertia with displacement 2.0: {:?}", x.moi_x_d());
}