bevy_math::primitives

Trait 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§