Struct piet_common::UnitPoint [−][src]
pub struct UnitPoint { /* fields omitted */ }
Expand description
A representation of a point relative to a unit rectangle.
Implementations
(0.0, 1.0)
(1.0, 1.0)
Create a new UnitPoint.
The u
and v
coordinates describe the point, with (0.0, 0.0) being
the top-left, and (1.0, 1.0) being the bottom-right.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for UnitPoint
impl UnwindSafe for UnitPoint
Blanket Implementations
Mutably borrows from an owned value. Read more
Performs the conversion.
Performs the conversion.