Skip to main content

PortableVector

Type Alias PortableVector 

Source
pub type PortableVector = Vector2D<f32>;
Expand description

Portable 2-D vector, f32-valued. Typically represents a layout or physics delta in graph/canvas coordinates.

Aliased Type§

pub struct PortableVector {
    pub x: f32,
    pub y: f32,
    /* private fields */
}

Fields§

§x: f32

The x (traditionally, horizontal) coordinate.

§y: f32

The y (traditionally, vertical) coordinate.