Trait bevy::math::prelude::Measured3d

pub trait Measured3d {
    // Required methods
    fn area(&self) -> f32;
    fn volume(&self) -> f32;
}
Expand description

A trait for getting measurements of 3D shapes

Required Methods§

fn area(&self) -> f32

Get the surface area of the shape

fn volume(&self) -> f32

Get the volume of the shape

Implementors§