pub struct PointPx {
pub x: f32,
pub y: f32,
}Expand description
A point in physical pixels, origin at the top-left corner.
§Examples
use ferrochart_core::geom::{PointCss, PointPx};
let p = PointCss { x: 10.0, y: 4.0 }.to_px(2.0);
assert_eq!(p, PointPx { x: 20.0, y: 8.0 });Fields§
§x: f32Horizontal position.
y: f32Vertical position (down is positive).
Implementations§
Trait Implementations§
impl Copy for PointPx
impl StructuralPartialEq for PointPx
Auto Trait Implementations§
impl Forget for PointPx
impl Freeze for PointPx
impl Move for PointPx
impl RefUnwindSafe for PointPx
impl Send for PointPx
impl Sync for PointPx
impl Unpin for PointPx
impl UnsafeUnpin for PointPx
impl UnwindSafe for PointPx
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more