DipVector

Type Alias DipVector 

Source
pub type DipVector = Vector2D<Dip, Dip>;
Expand description

A vector in device independent pixels.

Aliased Type§

#[repr(C)]
pub struct DipVector { pub x: Dip, pub y: Dip, }

Fields§

§x: Dip

The x (traditionally, horizontal) coordinate.

§y: Dip

The y (traditionally, vertical) coordinate.

Trait Implementations§

Source§

impl Div<Factor2d> for DipVector

Source§

type Output = Vector2D<Dip, Dip>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Factor2d) -> DipVector

Performs the / operation. Read more
Source§

impl DivAssign<Factor2d> for DipVector

Source§

fn div_assign(&mut self, rhs: Factor2d)

Performs the /= operation. Read more
Source§

impl IntoVar<Vector> for DipVector

Source§

impl Mul<Factor2d> for DipVector

Source§

type Output = Vector2D<Dip, Dip>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Factor2d) -> DipVector

Performs the * operation. Read more
Source§

impl MulAssign<Factor2d> for DipVector

Source§

fn mul_assign(&mut self, rhs: Factor2d)

Performs the *= operation. Read more
Source§

impl IntoValue<Vector> for DipVector