Trait bevy::math::prelude::Measured2d

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§

fn perimeter(&self) -> f32

Get the perimeter of the shape

fn area(&self) -> f32

Get the area of the shape

Implementors§