Type Alias easy_imgui::Vector2

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

A type alias of the cgmath::Vector2<f32>.

Used in this crate to describe a 2D position or size. The equivalent type in Dear ImGui would be ImVec2.

Aliased Type§

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

Fields§

§x: f32

The x component of the vector.

§y: f32

The y component of the vector.