Vector2

Type Alias 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§

#[repr(C)]
pub 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.