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: PxThe x (traditionally, horizontal) coordinate.
y: PxThe y (traditionally, vertical) coordinate.
Trait Implementations§
Source§impl DivAssign<Factor2d> for PxVector
impl DivAssign<Factor2d> for PxVector
Source§fn div_assign(&mut self, rhs: Factor2d)
fn div_assign(&mut self, rhs: Factor2d)
Performs the
/= operation. Read moreSource§impl From<PxGridSpacing> for PxVector
impl From<PxGridSpacing> for PxVector
Source§fn from(s: PxGridSpacing) -> Self
fn from(s: PxGridSpacing) -> Self
Converts to this type from the input type.
Source§impl MulAssign<Factor2d> for PxVector
impl MulAssign<Factor2d> for PxVector
Source§fn mul_assign(&mut self, rhs: Factor2d)
fn mul_assign(&mut self, rhs: Factor2d)
Performs the
*= operation. Read more