PxVector

Type Alias PxVector 

Source
pub type PxVector = Vector2D<Px, Px>;
Expand description

A vector in device pixels.

Aliased Type§

#[repr(C)]
pub struct PxVector { pub x: Px, pub y: Px, }

Fields§

§x: Px

The x (traditionally, horizontal) coordinate.

§y: Px

The y (traditionally, vertical) coordinate.

Trait Implementations§

Source§

impl Div<Factor> for PxVector

Source§

type Output = Vector2D<Px, Px>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Factor) -> PxVector

Performs the / operation. Read more
Source§

impl DivAssign<Factor> for PxVector

Source§

fn div_assign(&mut self, rhs: Factor)

Performs the /= operation. Read more
Source§

impl Mul<Factor> for PxVector

Source§

type Output = Vector2D<Px, Px>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Factor) -> PxVector

Performs the * operation. Read more
Source§

impl MulAssign<Factor> for PxVector

Source§

fn mul_assign(&mut self, rhs: Factor)

Performs the *= operation. Read more
Source§

impl PxToDip for PxVector

Source§

type AsDip = Vector2D<Dip, Dip>

Self equivalent in Dip units.
Source§

fn to_dip(self, scale_factor: Factor) -> Self::AsDip

Divide the Px self by the scale.