Type Alias speedy2d::dimen::Vec2

source ·
pub type Vec2 = Vector2<f32>;
Expand description

A vector with two f32 values.

Aliased Type§

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

Fields§

§x: f32

The horizontal component of the vector.

§y: f32

The vertical component of the vector.