Trait flat_spatial::Vec2

source ·
pub trait Vec2: From<[f32; 2]> + Copy {
    // Required methods
    fn x(&self) -> f32;
    fn y(&self) -> f32;
}

Required Methods§

source

fn x(&self) -> f32

source

fn y(&self) -> f32

Implementations on Foreign Types§

source§

impl Vec2 for [f32; 2]

source§

fn x(&self) -> f32

source§

fn y(&self) -> f32

Implementors§