Trait bevy_math::primitives::Measured3d

source ·
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§

source

fn area(&self) -> f32

Get the surface area of the shape

source

fn volume(&self) -> f32

Get the volume of the shape

Implementors§