Skip to main content

V2

Type Alias V2 

Source
pub type V2 = Vector2D<f32, UnknownUnit>;
Expand description

A two dimensional vector.

Aliased Type§

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

Fields§

§x: f32

The x (traditionally, horizontal) coordinate.

§y: f32

The y (traditionally, vertical) coordinate.