Trait Stereometric

Source
pub trait Stereometric<S>
where S: Ring,
{ // Required method fn volume(&self) -> Positive<S>; }
Expand description

Trait for computing volumes of solid figures.

Note for ‘Unbounded’ shapes this will be positive infinitiy.

Required Methods§

Source

fn volume(&self) -> Positive<S>

Implementors§

Source§

impl Stereometric<f64> for Dynamic

Source§

impl Stereometric<f64> for Static

Source§

impl<S> Stereometric<S> for Bounded<S>
where S: Real,

Source§

impl<S> Stereometric<S> for Unbounded<S>
where S: Real + FloatCore + Debug,

Source§

impl<S> Stereometric<S> for Variant<S>
where S: Real + FloatCore + Debug,

Source§

impl<S> Stereometric<S> for Capsule<S>
where S: Real,

Source§

impl<S> Stereometric<S> for Cone<S>
where S: Real,

Source§

impl<S> Stereometric<S> for Cube<S>
where S: Field,

Source§

impl<S> Stereometric<S> for Cuboid<S>
where S: Field,

Source§

impl<S> Stereometric<S> for Cylinder<S>
where S: Real,

Source§

impl<S> Stereometric<S> for Halfspace<S>
where S: Real + FloatCore,

Source§

impl<S> Stereometric<S> for Orthant
where S: Ring + FloatCore,

Source§

impl<S> Stereometric<S> for Sphere<S>
where S: Real,