Type Alias Vec2f

Source
pub type Vec2f = Vector2<f32>;

Aliased Type§

pub struct Vec2f {
    pub x: f32,
    pub y: f32,
}

Fields§

§x: f32§y: f32

Implementations§

Source§

impl Vec2f

Source

pub const ZERO: Vec2f

Source

pub const UNIT_X: Vec2f

Source

pub const UNIT_Y: Vec2f

Source

pub const ONE: Vec2f

Source

pub fn length(&self) -> f32

Trait Implementations§

Source§

impl From<Vector2<i32>> for Vec2f

Source§

fn from(value: Vec2) -> Self

Converts to this type from the input type.
Source§

impl Eq for Vec2f