Trait bevy_math::primitives::Measured2d

source ·
pub trait Measured2d {
    // Required methods
    fn perimeter(&self) -> f32;
    fn area(&self) -> f32;
}
Expand description

A trait for getting measurements of 2D shapes

Required Methods§

source

fn perimeter(&self) -> f32

Get the perimeter of the shape

source

fn area(&self) -> f32

Get the area of the shape

Implementors§