Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Vec2 for [f32; 2]

Source§

fn x(&self) -> f32

Source§

fn y(&self) -> f32

Implementors§