pub type PxVector = Vector2D<Px, Px>;
Expand description
A vector in device pixels.
Aliased Type§
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 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